Newbie Question: Create statically linked -
05-25-2005
, 07:56 AM
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
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw |