News:

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

Main Menu

static library default extension in Windows

Started by rodrigo.canellas, September 25, 2007, 03:04:40 PM

Previous topic - Next topic

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!