User forums > Help
Create import library
(1/1)
tobb:
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:
--- Quote from: 20-40 on July 12, 2007, 03:22:07 pm ---On Linux there is no such thing as "import" library.
--- End quote ---
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;
}
--- End code ---
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)
Navigation
[0] Message Index
Go to full version