User forums > Using Code::Blocks
static library default extension in Windows
(1/1)
rodrigo.canellas:
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!
JGM:
you should uncheck Auto-generate filename extension and append the desired one. This is done on the project properties->build targets.
rodrigo.canellas:
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!
Navigation
[0] Message Index
Go to full version