complying mysql in mac os

This is a discussion on complying mysql in mac os within the C Programming forums, part of the General Programming Boards category; how we can compile the mysql program in mac os i already done it in linux i am new to ...

  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
    32,821
    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.
    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. Mac OS X Users/C programmers?
    By petermichaux in forum C Programming
    Replies: 16
    Last Post: 04-18-2011, 07: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, 04:12 PM
  5. Assembly & Mac OS X
    By kristy in forum Tech Board
    Replies: 2
    Last Post: 07-29-2003, 05:29 PM

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