Re: [Dev-C++] include of selfcreated libraries
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Carlos d. M. <cg...@wo...> - 2002-11-27 12:08:28
|
You can name the lib libfoo.a and use -lfoo (which is the recommended, th= e linker adds automatically the lib and the .a). Or you type instead -lfoo foo.a or path/to/it/foo.a. I suppose you built an static library project. Frank Wagner escribi=F3: > Hello, > > I wrote some classes that I don't want to include to new projekts every > time. So I created a directory ../inlcude and put in the foo.h files > containing the classes. Then I compiled the the foo.cpp building a > library named foo.a. > At the linker options I put in a -l foo.a but while compiling a new > projekt that sould use that new library I get a linker error. > What is neccessary to linkt the lib file? Is it neccessary to name the > libfile libfoo.a or someone else ?? > > Any suggestions?? Whats with the foo.so is this essential? > > I hope somewone can give me a hint. > > Greetings > > Frank > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |