Thread: can u help me wht this command means

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    can u help me wht this command means

    hi this is my command

    cc -I/usr/local/include/mysql prog.c -lmysqlclient -lsocket -lnsl -lm -lz

    i know about mysqlclient and m means math.
    but i don't know about socket,nsl,z.
    can u tell my they all include.
    thank u,
    sree.

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    They are libraries. STW.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    34,668
    Eg
    nm /usr/include/libz.a
    would print all the symbols which that library would resolve.
    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. wht bout a triangle
    By Nikisha in forum C++ Programming
    Replies: 6
    Last Post: 03-26-2003, 01:37 PM
Website Security Test