News:

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

Main Menu

Make Code::Blocks convert .rc into .obj instead of .res

Started by MC, September 04, 2013, 01:45:29 PM

Previous topic - Next topic

MC

Want to link resources statically. the .res files are beeing
loaded at runtime. therefore i need .obj.
Tried under Settings\Compiler\OtherSettings\Advanced options\Compile win32 resource file
to change variable $resource_output to $objects_output_dir\$file_name.obj.
As a sideeffect this destroyed the long filename support (the tilde is now in the resulting filename instead
of it beeing used as a joker). More important is, that i cant use the generated .obj with ar to
include it into the static library. What i don't understand, too is that per default windres is configured to
output coff object format but the extension is named .res, which is inconsequent in my eyes.

So, my question is, how is the clean way to make code::block to compile and link a .rc file into a
static library?