Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: rodrigo.canellas on September 25, 2007, 03:04:40 pm
-
Hi,
I created a 'Static library' target, and the 'Output filename' has a ".a" extension, instead of ".lib".
I also created a 'Dynamic library' with 'Created import library' and 'Create .DEF exports file' checked, and again the static library created has the ".a" extension.
Is there a way to change the default static library extension?
Thanks!
-
you should uncheck Auto-generate filename extension and append the desired one. This is done on the project properties->build targets.
-
But if I choose 'Dynamic library', in order to generate both shared and static, I can only change the extension for the shared library, not for the static.
Ok, I could create a target to generate the static library, but I would like to have one target for both versions (actually two, a 'debug' and a 'release' target). I mean, I would not like to create 'debug_static', 'debug_shared', 'release_static' and 'release_shared' targets.
Is there a way to do this?
Thanks!