Author Topic: static library default extension in Windows  (Read 5638 times)

rodrigo.canellas

  • Guest
static library default extension in Windows
« 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!

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: static library default extension in Windows
« Reply #1 on: September 25, 2007, 03:09:28 pm »
you should uncheck Auto-generate filename extension and append the desired one. This is done on the project properties->build targets.

rodrigo.canellas

  • Guest
Re: static library default extension in Windows
« Reply #2 on: September 25, 2007, 03:32:27 pm »
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!