>Heya:
>
>in openBSD I have a cli interface for simple i/o to mysql database.
>Written in C.
>it works perfectly.
>
>On Darwin and OS X it won't compile.
>It gives the following errors.
>
>$ cc -lmysqlclient -I/usr/local/mysql/include testmy.c linklist.c
>/usr/bin/ld: Undefined symbols:
>_mysql_close
>_mysql_error
>_mysql_fetch_row
>_mysql_init
>_mysql_query
>_mysql_real_connect
>_mysql_store_result
>

Darwin cc compiler requires the arguments in search order:

cc -omytest testmy.c linklist.c -lmysqlclient

misread the docs  . . .  sorry for your trouble.
--
Liam Allen               [EMAIL PROTECTED]
it may be that your sole purpose in life
is to serve as a warning to others

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to