dbTalk Databases Forums  

Re: Newbie Question: Create statically linked executable

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


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



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Frey
 
Posts: n/a

Default Re: Newbie Question: Create statically linked executable - 05-25-2005 , 08:40 AM






On Wed, May 25, 2005 at 08:56:39PM +0800, Willy K' wrote:
Quote:
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
Static linking requires that you have .a files for all libraries you want
to link statically. Apparently you don't have a static version of the
mysql C API library on your system. (i.e. libmysqlclient.a, not
libmysqlclient.so)

- Chris


--
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.