User forums > Help
Static library "lib" prefix.
severach:
The reason you prepend lib and postpend .a onto the specified file is so all compilers can use the same lib names and the lib tool adapts to the proper names. I should be able to specify the following standard libs without having to change them for each compiler I use.
shell32 (shell32.lib libshell32.a)
user32
shlwapi
C:\Program Files\CodeBlocks\lib\foo.a
If you use the full path for the lib, C::B does not add anything. There should be a less drastic way to get C::B to drop prefixes and suffixes. I end up with .o/.obj problems too. It seems that C::B stores a default lib/obj extension for each compiler but I can't find where to change it.
zieQ:
--- Quote from: severach on September 23, 2005, 07:34:01 am ---I end up with .o/.obj problems too. It seems that C::B stores a default lib/obj extension for each compiler but I can't find where to change it.
--- End quote ---
There's none actually, the prefix and extension are hardcoded into the compiler plugin. This will be subject to changes in the compiler revamp after v1.0 :wink:
mandrav:
It 's in Settings->Compiler->Other->Advanced options.
Navigation
[0] Message Index
[*] Previous page
Go to full version