Reputation: 22616
Problem with compiling.
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
c89
cmake version 2.8.7
Not sure how to start with this one. I have googled it but couldn't come up with anything.
This is the warning I am getting:
<command-line>:0:11: warning: extra tokens at end of #undef directive [enabled by default]
I am using cmake as the build system that creates the Makefile that I will compile. However, I am not sure why I am getting this warning. I have never had that before.
Can any one point me in the right direction. I am not sure what information I should provide to help solve this problem.
Many thanks for any suggestions,
Upvotes: 0
Views: 1670
Reputation: 11694
I would expect a warning like this if you had a line like the following in one of your source files:
#undef FOO BAR BAZ
The BAR
and BAZ
are ignored by the compiler, hence the warning. What's at character 11 of your command-line? Can you post the command line?
Upvotes: 3