User forums > Using Code::Blocks

CB Doesn't create import library when creating dynamic library

(1/1)

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 ...

Navigation

[0] Message Index

Go to full version