Macro continued with backslash [message #117265] |
Wed, 25 August 2004 11:10  |
Eclipse User |
|
|
|
Originally posted by: cenedese.nospam.indel.ch
Hi
I couldn't find a single bug report with backslash, so I write here.
I have some C code which I imported into an eclipse cdt project. The
parser had a problem with macros that are continued like:
#define mydef \
some big value which needs a new line :)
As I also use an old gcc 2.95.3 (cross-compiled with cygwin). I now got
the same error as compile error (and not only indexer error). After
looking on the internet I found that older gcc versions had a problem
with this if the file had the wrong line ending convention (DOS/UNIX).
So I just tried and converted my file from DOS to UNIX (although I'm
working on Windows) and suddenly the parser was happy.
The line ending may not be important in general, but in this case
(macro continuation) there's a bug in the C parser which only works
correctly with UNIX line endings.
Thanks
bye Fabi
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03319 seconds