User forums > Using Code::Blocks
How to deliver options to resource compiler ?
Frank3000:
Hello,
I'm trying to compile the zlib library with codeblocks (rev. 1562).
I need to pass the -DGCC_WINDRES option to windres.exe otherwise I
get a syntax error in zlib1.rc. Where is this possible ?
(except at programs tab direct after windres.exe)
Frank
jimp:
CodeBlocks has no option to send options to the resource compiler (but probably should). You can put the option in Compiler Settings, Other, Advanced options, Compile Win32 Resource File, or as you said after windres.exe. Doing this will send it to all programs compiled with the resource compiler.
What does GCC need that other resource compilers don't? Resource files don't usually contain options that are compiler specific.
thomas:
Hmm... not implemented, sorry.
But, does the resource compiler not support #include?
I think it does... Then you could #include "foo.h" and put #define GCC_WINDRES in there...
Frank3000:
Thx for your answer.
--- Quote from: jimp on December 21, 2005, 09:02:22 pm ---Resource files don't usually contain options that are compiler specific.
--- End quote ---
Yes, I haven't seen that before either.
--- Quote ---#ifdef GCC_WINDRES
VS_VERSION_INFO VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
#endif
--- End quote ---
Frank3000:
--- Quote from: thomas on December 21, 2005, 10:01:50 pm ---Hmm... not implemented, sorry.
But, does the resource compiler not support #include?
I think it does... Then you could #include "foo.h" and put #define GCC_WINDRES in there...
--- End quote ---
O.k. but if I wanted to change the source file I could just remove the #if part.
:D
Navigation
[0] Message Index
[#] Next page
Go to full version