PDA

View Full Version : /usr/bin/ld: cannot find -llibmysqlclient.a



jacket87
May 15th, 2007, 10:32 AM
Hello,
I'm getting this message when I try to compile/link an application in Eclipse:
/usr/bin/ld: cannot find -llibmysqlclient.a

I'm running Ubuntu 7.04 - Fiesty Fawn
Eclipse version 3.2.2
Synaptic Package Manager indicates that libmysqlclient15-dev is installed.

I have tried explicitly putting the path to libmysqlclient.a, but still get the same error.

Now I'm pulling out what is left of my hair. Any suggestions?

Thanks.

WW
May 15th, 2007, 05:53 PM
With the -l option, you do not include the "lib" part of the library name. Try -lmysqlclient

jacket87
May 17th, 2007, 01:02 AM
That got it. Thank you very much.