Compliling with libs

This is a discussion on Compliling with libs within the Linux Programming forums, part of the Platform Specific Boards category; 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 ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 03:20 PM
  3. How do I make shared libs on Linux?
    By cpjust in forum C Programming
    Replies: 13
    Last Post: 11-05-2007, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21