XCode - C - MySQL - GCC options
I'm using XCode to create a Command line C App.
I want to use MySQL, so I need to pass certain parameters to gcc (http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html)
How should I setup XCode to pass those parameters to gcc?
I tried compiling an example by hand (http://dev.mysql.com/doc/refman/5.0/en/building-clients.html) and when I execute it, it returns "Segmentation Fault".
EDIT: I fixed, it works when I compile it manually. The thing is configuring XCode to add parameters to gcc automatically.
Thanks!
I'm using XCode to create a Command line C App.
I want to use MySQL, so I need to pass certain parameters to gcc (http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html)
How should I setup XCode to pass those parameters to gcc?
I tried compiling an example by hand (http://dev.mysql.com/doc/refman/5.0/en/building-clients.html) and when I execute it, it returns "Segmentation Fault".
EDIT: I fixed, it works when I compile it manually. The thing is configuring XCode to add parameters to gcc automatically.
Thanks!