Thread: Compliling with libs

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001

    Compliling with libs

    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
    (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 ?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dynamic libs and undefined references
    By ccox421 in forum C Programming
    Replies: 5
    Last Post: 03-28-2009, 10:25 AM
  2. Replies: 16
    Last Post: 01-17-2008, 04:20 PM
  3. How do I make shared libs on Linux?
    By cpjust in forum C Programming
    Replies: 13
    Last Post: 11-05-2007, 04:54 PM
  4. dx libs for borland c++
    By silk.odyssey in forum Game Programming
    Replies: 4
    Last Post: 06-16-2004, 12:09 AM
  5. DLL's and Lib's
    By DavidP in forum A Brief History of
    Replies: 3
    Last Post: 06-10-2002, 10:19 PM