Linux, g++, 'define' and line continuation character
Jeremy W. Murphy
jwm@amc.com.au
Thu Oct 14 16:47:00 GMT 1999
At 15:25 14/10/1999 -0700, Alt.net wrote:
>Hi there,
>
>I'm new to C++ on Linux [Windows thus far] and am having trouble poting some
>code from Windows to Caldera OpenLinux 2.3.
>
>Compiler version is g++, 2.91.66-5
>
>I have a header file containing a few #defines. If any of these #defines end
>up being more than one line, the compiler complains about a "parse error",
>and then "stray '\' in program"
Perhaps you have accidentally included the continuation \ inside quotes or
something? Could you include a couple of examples?
Jeremy
More information about the Gcc-help
mailing list