|
From: Per W. <pw...@ia...> - 2003-04-17 12:03:48
|
Because the compiler dont looks around in your library path and picks up file at random. The only exception is that most object file formats allows the compiler to add a reference to a standard library that the linker should use. A lot of cimpilers uses that to specify that the linker should pick up the standard c library. The linker uses the library path to locate the library files that are mentioned either in your project, or that are specifically mentioned in the object files. Including a header file and calling a function from a library will not add information about a library in the object file. It will just add the name of the function. /Per W On Thu, 17 Apr 2003, Frank Wagner wrote: > Hello, > > I tried to use Ncurses libraries the headers are in the preset include > path and the libs are in the lib path set in the lib settings of the > compilor. > > Why can I only link my program when I explicitly add these library file > in the Project Options Linker Settings?? > > Greetings > > Frank > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 > |