u just have to tell the compiler where ur mysql header (mysql.h) and shared library 
(libmysqlclient.so) are located, e.g.:

gcc -L/usr/local/lib/mysql -lmysqlclient -I/usr/local/include/mysql -o a.out 
yourprogram.c

... in this case mysql.h is in the directory /usr/local/include/mysql, and the 
libmysqlclient.so is in /usr/local/lib/mysql

[EMAIL PROTECTED] wrote:

>I have write a simple program in C/C++.
>this program use API for Mysql (linux)
>the question is :
>How to compile this programs?
>Tank you in advance, Mario.
>
>---------------------------------------------------------------------
>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
>
>
>

__________________________________
www.edsamail.com

---------------------------------------------------------------------
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