parse error before `{', stray '\' in program

Graf Alex alex.graf at siemens.com
Thu Apr 10 19:23:49 EST 2003


Hello,

If I have some defines which have '\' inside ...

#define BIND_DESC_ALM \
{ \
	CAlmSourceProp::IdxBindingGrp; \
}

my cross compiler produce following output:

ppc_8xx-gcc -fPIC -DPIC -D_DEBUG -Wall -ansi -g3 -O0
-I/home/projects/Nscu/_Inc -I/home/projects/Nscu/_Inc_PC -c -o main.o
main.cpp
main.cpp:15: parse error before `{'
main.cpp:15: stray '\' in program
main.cpp:16: stray '\' in program

I have have SuSE 8.1 and the cross compiler (ppc_8xx-gcc) has version
2.95.4.

The troubles are coming from the dos <cr><lf> at line end. With gcc 3.2
(from host) I don't have this problems.
I don't want to remove the <cr>s (dos2unix), because these files have to be
used on Windows too.

Any suggestions? Unfortunately there is no ppc_8xx-gcc with version 3.2 out.
Or is it?

Alex


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list