Re: parse error before `{', stray '\' in program
From: Wolfgang Denk <hidden>
Date: 2003-04-10 09:48:26
In message [ref] you wrote:
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 programThis is usually caused by illegal file formats.
The troubles are coming from the dos <cr><lf> at line end. With gcc 3.2 (from host) I don't have this problems.
Use Unix file formats (plain '\n' line termination). Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de Brain off-line, please wait. ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/