[omniORB] GCC-2.95.1 error: stray '\' in program

Smith, Norman Norman_Smith@bmc.com
Mon, 11 Oct 1999 09:38:39 -0500


We've had some strange behavior due to differences with line termination
characters between NT and unix (i.e. <CR><LF> vs. <LF> on unix), such as
when trying to use CVS on NT, but the repository is on a unix mapped drive.
We are using WinCVS on NT as a GUI front-end to CVS, so I don't know if the
problem lies within WinCVS or CVS itself. The extra carriage return would be
a hidden character, and would always be at the end of the line (i.e. past
the '\' at the end of each line).

Perhaps this is the source of your grief.

-----Original Message-----
From: Rosimildo DaSilva [mailto:rdasilva@connecttel.com]
Sent: Sunday, October 10, 1999 12:07 PM
To: omniorb list
Subject: Re: [omniORB] GCC-2.95.1 error: stray '\' in program


I am replying to my own post, because I think this happens when I download
the
source distribution with CVS. If I use the "archive" file from the
snapshots, the
files seems to be ok.
It must be some funky behavior of CVS under NT, I guess.

Any help would be appreciated, becuase at the end I'd like to use CVS.

Rosimildo.


>Hi guys,
>
>I am using Cygwin 20.1 and a few files from the omniORB distribution
refuses
>to compile unless
>I go and apply a filter to them to remove some hidden character after a
"\".
>
>I am compiling with a "cross compiler" and most of CygWin users most likely
>do not
>see this problem.
>
>If anyone knows the cure for this, please let me know.
>
>---------------------------------------------------------------------------
-
>--------------------------------
>/gcc-i386/bin/i386-rtemself-g++ -c -O4 -Wall -Wno-unused -ansi -fasm -g -B/
t
>ools
>/build-i386-elf-rtems/pc386/lib/ -specs
>sp_specs -qrtems -I.  -I../../../../inc
>lude -D__x86__ -DPthreadDraftVersion=10 -DPthreadSupportThreadPriority -DTh
r
>eadS
>tackSize=4096*4   -I. -I./.. -I./../.. -DUSE_omniORB_logStream -D_OMNIORB2_
L
>IBRA
>RY -DUnixArchitecture -DCONFIG_DEFAULT_LOCATION='"/project/omni/var/omniORB
_
>NEW.
>cfg"' -I/tools/build-i386-elf-rtems/pc386/lib/include -I/tools/build-i386-e
l
>f-rt
>ems/pc386/lib/include/networking -I/tools/build-i386-elf-rtems/pc386/lib/in
c
>lude
>/sys -o bootstrap_i.o bootstrap_i.cc
>In file included from ../../../../include/omniORB2/omniInternal.h:588,
>                 from ../../../../include/omniORB2/CORBA.h:204,
>                 from bootstrap_i.cc:81:
>../../../../include/omniORB2/bufferedStream.h:111: parse error before `&'
>../../../../include/omniORB2/bufferedStream.h:111: stray '\' in program
>../../../../include/omniORB2/bufferedStream.h:112: stray '\' in program
>../../../../include/omniORB2/bufferedStream.h:120: stray '\' in program
>
>
>Rosimildo.
>
>
>