View Full Version : Compliling with libs

03-23-2005, 10:39 AM
Compile Statement on my Dev Server:

g++33 app.cpp -L /usr/local/lib/mysql/ -lmysqlclient -lz -I /usr/local/include/mysql -I ./ -I /usr/local/include -fPIC -Wall -shared -o app.so

(I also include the mysql.h header file)

My question is:

Will I have to insall the mysql client lib on each production box ?
Is it all complied within the 1 .so shared lib ?

03-23-2005, 12:24 PM
Well you could do "nm" on the library you produce to see whether the code (well lots of mysql symbols) is in the library or not.