Author Topic: How can I apply project defines setting to compile resource file?  (Read 3358 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
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 ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How can I apply project defines setting to compile resource file?
« Reply #1 on: July 17, 2013, 06:59:16 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ