Author Topic: Make Code::Blocks convert .rc into .obj instead of .res  (Read 3874 times)

Offline MC

  • Multiple posting newcomer
  • *
  • Posts: 10
Make Code::Blocks convert .rc into .obj instead of .res
« on: September 04, 2013, 01:45:29 pm »
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?