|
Re: Can't find error location "Line 0" :-( [message #1794319 is a reply to message #1794297] |
Wed, 29 August 2018 00:38 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
You ARE using Eclipse and CDT, yes?
The IDE (i.e., CDT) only repeats what the compiler has given it.
Look at the compiler output in the build log.
The message may not have the format expected by CDT.
You may need to try compiling from a terminal window.
Break up the code to narrow your search.
Try compiling the first line then add lines until you get the error.
Yes, it is tedious.
some possible causes:
#define XXX aa // XXX already defined and it doesn't look like an identifier
// should be an "already defined" error but it depends on the preprocessor.
#ifdef id // OK
#ifdef 0 // BAD: should be an identifier but is a constant
// a partial preprocessor directive
#define #if // for example
#ifdef #if // another example
Google "macro name must be an identifier" for others.
Good luck.
[Updated on: Wed, 29 August 2018 00:47] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 1.07256 seconds