[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.cdt] Linker cannot find lib file
|
- From: jan_m@xxxxxxxxxxxxxxxx (Jan Millar)
- Date: Thu, 13 Aug 2009 19:33:34 +0000 (UTC)
- Newsgroups: eclipse.tools.cdt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi,
I have defined the library to link and the linker library path every way I
can think of but I get the following error:
make all
Building target: CgiGetD
Invoking: GCC C++ Linker
g++ -o"CgiGetD" ./src/CgiGetD.o
-l/home/fred/workspace/CgiGetD/libmysqlclient.a
/usr/bin/ld: cannot find -l/home/fred/workspace/CgiGetD/libmysqlclient.a
collect2: ld returned 1 exit status
make: *** [CgiGetD] Error 1
The file is there in /home/fred/workspace/CgiGetD .
The permissions are:
-rw-r--r-- 1 fred fred 6665868 2009-07-14 02:39 libmysqlclient.a .
I am logged in as fred. The directories are owned by fred.
I defined the library in:
Properties>C/C++ Build>Settings>Tool Settings>GCC C++ Linker>Libraries.
Eclipse version 3.4.2 (Mandriva Platform). O/S Mandriva 2009 One.
Any clues anyone?
TIA
Jan