News:

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

Main Menu

CB Doesn't create import library when creating dynamic library

Started by robertha, March 22, 2008, 12:35:19 PM

Previous topic - Next topic

robertha

Hello

I'm using Code::Blocks 8.02 and made a dynamic library. But when I build the Project, CB creates only a .so file, not a .a file for including in the project.... I checked "create import library" in build targets, but it doesn't work...

Has anybody an idea what i'm doing wrong?

Im using Fedora 8, just in case...

Thanks
Bob

Ceniza

IIRC, Linux uses .a only for static linking, and .so for dynamic linking. Creating an import library would be useless because you link against the .so directly. I've never heard about linking against a .a library for dynamic linking on Linux.

robertha

Thanks, I didn't know that... I'm coming from the Windows world, porting my first app to linux ...