Thread: Compliling with libs

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

    Compliling with libs

    Compile Statement on my Dev Server:
    Code:
    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 ?
    or
    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
    Location
    The edge of the known universe
    Posts
    39,660
    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 Cprogramming.com
    Replies: 3
    Last Post: 06-10-2002, 10:19 PM