dbTalk Databases Forums  

Newbie Question: Create statically linked

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Newbie Question: Create statically linked in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Willy K'
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.