List:MySQL++« Previous MessageNext Message »
From:Willy K' Date:May 25 2005 12:56pm
Subject:Newbie Question: Create statically linked
executable
View as plain text  
I am trying link a static executable.
I use the following on linking
g++ -I/usr/include/mysql++ -I/usr/include/mysql -02 -c 
application.cpp
g++ -I/usr/include/mysql++ -I/usr/include/mysql -02 -c 
util.cpp
g++ -Wall -02 -o StaticExe application.o util.o -static -
lmysqlpp -lmysqlclient
it gives back a error of:
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld return 1 exit status

It was successful when I link it without the -static flag.

I have add /user/lib in ld.so.conf and ran ldconfig
where libmysqlclient.so is located...

Please advice...

Willy Kwong
Thread
Newbie Question: Create statically linkedexecutableWilly K'25 May
  • Re: Newbie Question: Create statically linked executableChris Frey25 May