Re: [Dev-C++] creating library *.a files with Dev C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ferdinando F. <s2...@st...> - 2003-11-25 16:07:13
|
On Tue, 25 Nov 2003, Coosa wrote: > I heard later that i must create a FileA.a from the FileA.o, but i have no idea how to do this! > Can some please one help me on that? Well, from a shell console (cmd.exe) type [path_to_bin_dir]ar crs [path_to_lib_dir]libxxx.a [list_of_object_files] where xxx is the name you would give to your library (the .a file) and paths are subdirectories (bin, lib) in your compiler installation directory. Then you can include object files in your project by writing in the 'link' section of project settings the line -lxxx Note that you can even chose to keep the lib in your project dir, but you should set in the options '-L.', that tell the compiler to search libraries in your dir. Well, actually I'm not so sure about this. If you need it, I can post you some man pages in ASCII format about 'ar' or other tools. Please, you all let me know if I said something wrong or stupid. Bye. Ferdinando. |