Noorez Kassam wrote:
> In the libraries directory i gave the compiler the location of library
> files that i made. Then in the option to add linker parameters i
> simply put the name of the library file but the linker complains that
> it couldn't find the file. If i give the full path in the linker
> parameters it finds it, but since i told the compiler where to find
> the libraries, why can't I just give the name of the library as a
> parameter?
If a library is in the library path and have the name
libfoo.a
then you can pass it to the linker as
-lfoo
Or else you'll need to pass the complete file name and location to the
linker.
Daniel K. O.
|