Re: [Dev-C++] Another one with static libraries.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2004-02-29 15:47:33
|
Emiliano wrote: >>Sure, just compile the static version of the library, and recompile >th= e >>exe. The symbols will be linked in. >=20 > Please explain me what to do exactly. If I have understood, I need to p= ut > into my project the source files of the library too? I thought it was e= nough > to put into the linker parameters the ".a/.lib" file... No, you don't need to put the sources into the project. Actually, that=20 should never be done. You need to get the sources of the library, that you wish to use (in=20 this case jpeglib?). Then compile the static version of the library. How=20 to do that? Well, it depends heavily on the library that you're using.=20 Look around in the docs of the library to see how to compile the static=20 version of it. It will get you a libxxx.a file, where possibly xxx is=20 the name of the library. Then place it to a place, where GCC (Dev-C++)=20 can find it (maybe <DEVCPP>\lib), then add -lxxx to your project librarie= s. The symbols will be "hard-linked" into the exe from the lib. -- Greetings, Bal=E1zs |