Author Topic: Create import library  (Read 4491 times)

tobb

  • Guest
Create import library
« on: July 11, 2007, 11:16:55 pm »
Hi,

I use Ubuntu 7.04 with Code::Blocks nightly build (23. May 2007, because this was the last version with wx2.6).

I wanted to create a dynamic library, but in the Project menu is no option for a dynamic library project...
but there is another way:
I created a console application an changed the project option under "build targets" to "dynamic library"...

gcc always creates the shared object ("thymeEngine.so") succesfully but i don't find the import library ("libthymeEngine.a")
The checkbox "Creeate import library" is checked for Debug and Release mode... so I don't understand that I can't find it...

tobb

  • Guest
Re: Create import library
« Reply #1 on: July 13, 2007, 03:24:19 pm »
On Linux there is no such thing as "import" library.
Hm... when i create i shared object... how can I use in another programm the functions of this shared object? I need a the pointer to the funktions in the shared object... how does it work?

Example:
I created a shared object called "libgood.so"

I develope a new programm that needs functions from libgood.so:

Code
#include "libgood.h"

int main()
{
    good_function();
    return 0;
}
Then i will get an error like "no referenc to good_function found" or something like that...
I tought i have to link soemthing like "libgood.a" ...

And my question is... how to create somehting like libgood.a (that is not a static library)
« Last Edit: July 13, 2007, 03:25:53 pm by tobb »