User forums > Using Code::Blocks
"Syntax Error" When Compiling zlib?
kartari:
Update: I've tried moving the project to a folder that has no spaces or special characters (D:\Projects\zlib123\) and receive the same syntax error. I've checked with windres and the default parameters used by C::B are correct. I finally gave up and altered the code for zlib1.rc and commented out "MOVEABLE IMPURE LOADONCALL DISCARDABLE" from line 6 and got it compiling now. All four of those keywords cause a syntax error (I tried them all individually). I guess I'll see if this has deleterious effects on my program in the future.
In the meantime, I suppose this means one of two things:
a) The source code of GCC included with Code::Blocks 8.02 is buggy concerning Windows resource files, or
b) The version of Windres included with Code::Blocks 8.02 is buggy.
I read elsewhere that windres doesn't compile well with the windows.h header included; I tried using other windows headers to no avail. The fact that it marks these keywords as syntax errors suggest to me that it's more likely a problem with not recognizing them than confusing them... if I had time I'd check through the Windows headers and see if they're defined anywhere in the GCC source include files.
I don't know enough to know which component is to blame here, but something's wrong, and it doesn't seem to be me this time! :)
Navigation
[0] Message Index
[*] Previous page
Go to full version