Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
error: expected unqualified-id in prep.h [resolved]
stardust:
Hi, when I try to rebuild a plugin I get the following errors. I cannot see what is wrong in prep.h. The plugin used to compile...
--- Quote ---./src/include/prep.h:59: error: expected unqualified-id before numeric constant
./src/include/prep.h:63: error: expected unqualified-id before numeric constant
--- End quote ---
SVN 3695
Biplab:
Add the following compiler options to your project.
--- Code: ----Ulinux -Uunix
--- End code ---
This would solve your problem.
Regards,
Biplab
stardust:
Thanks, that fixed the problem.
I wonder why such variable names are used at all...
Biplab:
Actually this has been due to few recent changes made to core. SDK manual has not been updated yet in Berlios. Once updated you'll come to know which part has been changed. :)
--- Quote from: stardust on March 14, 2007, 03:26:51 pm ---I wonder why such variable names are used at all...
--- End quote ---
Please read the following thread and you'll understand why it has been changed.
--- Quote ---http://forums.codeblocks.org/index.php/topic,5396.msg41954.html#msg41954
--- End quote ---
Regards,
Biplab
stardust:
Ok, I see.
So the approach should be to add
--- Code: ----ansi
--- End code ---
to the gcc options -- which actually fixes the problem, too -- rather than saying
--- Code: ----Uall-non-ansi-stuff
--- End code ---
However, when I add "-ansi" to the project's build options, then C::B ignores that! I.e. when I reopen the build options->compiler->other, then the "-ansi" is gone!!
Navigation
[0] Message Index
[#] Next page
Go to full version