Thread: complying mysql in mac os

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

    complying mysql in mac os

    how we can compile the mysql program in mac os
    i already done it in linux
    i am new to mac-os
    so please tell me how to compile the following program.
    http://www.cyberciti.biz/tips/linux-...i-program.html
    thank u
    sree

  2. #2
    Registered User
    Join Date
    Aug 2006
    Posts
    90
    ok i tried like this
    gcc req.c -I/usr/include/mysql -L/usr/lib/mysql/ -lmysqlclient -o req
    i got the following error how can i solve this
    /usr/bin/ld: Undefined symbols:
    _compress
    _uncompress
    collect2: ld returned 1 exit status

    so how can i solve this
    thank u
    sreee

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Find which library implements "compress" and "uncompress", then add the appropriate "-l" option to the end of your command line.
    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. Mac OS X Users/C programmers?
    By petermichaux in forum C Programming
    Replies: 16
    Last Post: 04-18-2011, 06:36 AM
  2. Replies: 1
    Last Post: 02-03-2009, 04:45 AM
  3. Mac OS X aliases
    By rak1986 in forum C Programming
    Replies: 4
    Last Post: 01-21-2009, 12:11 PM
  4. Mac OS X Programming
    By Exile in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 05-06-2005, 03:12 PM
  5. Assembly & Mac OS X
    By kristy in forum Tech Board
    Replies: 2
    Last Post: 07-29-2003, 04:29 PM