[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: Linker cannot find lib file


Oops... didnt remove the 'lib' at the front. It now links.

What an odd way to do things. Never had a linker do that before in my 30 years of programming. I would at least expect it to try exactly what you told it - and what if I have both a .o and a .so in the path???

Alternatively, if you want the behaviour I think you may have found in other compilers, don't use the -l command line option. If you specify a full path to a library it will be included in its entirety. The help for the above is here:
http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/Link-Options.html#Link-Options
http://sourceware.org/binutils/docs/ld/Options.html#Options


Jonah