2 messages in com.mysql.lists.plusplusRE: Linking libmysqlclient , sqplus
FromSent OnAttachments
Aaron Hagan10 Dec 2000 18:30 
Arturs Aboltins10 Dec 2000 23:28 
Subject:RE: Linking libmysqlclient , sqplus
From:Arturs Aboltins (aabo@exchange.telekom.lv)
Date:12/10/2000 11:28:09 PM
List:com.mysql.lists.plusplus

Now you are using shared (libsqlplus.so).You need static (something like lisqlplus.a) library of mysql++ to get all things in one executable. One of the solutions would be to change Makefile of mysql++ source distribution. When all object files (*.o ) are compiled use: ar -q libsqlplus.a *.o to get static library of mysql++

-----Original Message----- From: Aaron Hagan [mailto:aha@speedynet.net] Sent: Monday, December 11, 2000 4:31 AM To: plus@lists.mysql.com Subject: Linking libmysqlclient , sqplus

Hello there. This is probbly a silly question but here it goes. I am succesfully able to complie and/install the msql++ package. When i complie ( g++ sourcefile.cpp -I/usr/local/include/mysql -L/usr/local/lib -L/usr/local/lib/mysql -lsqpplus -lmysqlclient -o outfile) my outfile works okay on the local machine. If i try to move it to another machine i have to move all the libararys as well.

Is it possible to compile the libarays (libmsqlclient, sqlplus) into the outfile ? thanks

Aaron Hagan