|
From: Matthews <dem...@uw...> - 2003-02-07 22:56:47
|
Actually, <filname> looks in your specified include directories, whil "filename" looks in the current. It doesn't search in subdirectories unless you tell it to. I'm assuming you're trying to use functions defined in a library file. Also assuming that the .a or .lib is in your \lib directory, you will want to add "-l<libname>" to your projects options, without the <>s. At 01:30 PM 07/02/2003 -0200, Lucas K. Tavares wrote: >Ok... first .h files are header, not lib files... >to include a header, it doesn't matter within which subdirectory of >"include" it is, all you have to do is: #include <headername.h> it doesn't >need the path, as long as it's within a subdirectory, If I'm not mistaken, >the difference between using " and < when in #include statments is that, < >will look for subdirectories... > >Also as for lib files, they're under your lib directory and are named like >libblah.a so to include a file called like that you go to: Project >> >Project Options and under "Further Object files..." type in -llibname... >sorta like, let's say you wante dot include "libwsock32.a" you'd type in: >"-lwsock32" > >Hope this helps you out... >lkt153 > >----- Original Message ----- >From: "Latrice Wicker" <Lat...@co...> >To: <dev...@li...> >Sent: Friday, February 07, 2003 12:54 PM >Subject: [Dev-C++] Hi, > > >E-mail Premium BOL >Antiv=EDrus, anti-spam e at=E9 100 MB de espa=E7o. Assine j=E1! >http://email.bol.com.br/ >Hi, > >I am having problems using external libraries with Dev-C++.I put the= library >files in the Dev-C++ include directory (under a lvp subdirectory) and then >put the following preprocessor directive statement > > #include <lvp\string.h> > >in my source program. When I try to compile and run the program it gives= me >errors and locks up the compiler. Help! > >Regards, > >Latrice > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =3Domething 2 See! >http://www.vasoftware.com >_______________________________________________ >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 > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >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 > |