Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: robertha on March 22, 2008, 12:35:19 pm

Title: CB Doesn't create import library when creating dynamic library
Post by: robertha on March 22, 2008, 12:35:19 pm
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
Title: Re: CB Doesn't create import library when creating dynamic library
Post by: Ceniza on March 22, 2008, 03:26:08 pm
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.
Title: Re: CB Doesn't create import library when creating dynamic library
Post by: robertha on March 23, 2008, 10:29:50 am
Thanks, I didn't know that... I'm coming from the Windows world, porting my first app to linux ...