Author Topic: CB Doesn't create import library when creating dynamic library  (Read 5819 times)

robertha

  • Guest
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

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1439
    • CenizaSOFT
Re: CB Doesn't create import library when creating dynamic library
« Reply #1 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.

robertha

  • Guest
Re: CB Doesn't create import library when creating dynamic library
« Reply #2 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 ...