News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How can I apply project defines setting to compile resource file?

Started by huzhongshan, July 17, 2013, 01:02:50 AM

Previous topic - Next topic

huzhongshan

In project -> build options ->compiler settings -> #defines, I set something in it . When compile cpp files , it works ( gcc -Dxxxx -Dxxx) , but when compile resource file (in windows) ,  it doesnot work.  I have to create custom var and use custom build , likes $rescomp $res_includes $MY_DEF  -J rc -O coff -i $file -o $resource_output.

Is there a better way to apply compile settings(#define) to compile resource file ?

MortenMacFly

Quote from: huzhongshan on July 17, 2013, 01:02:50 AM
Is there a better way to apply compile settings(#define) to compile resource file ?
No, but its on our TODO list.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]