XCode - C - GCC options

Joined
Dec 6, 2006
Messages
31
Reaction score
0
Points
6
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!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top