Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Herrian

macrumors newbie
Original poster
Jul 11, 2010
1
0
Mexico
hi, i'm new to mac, and mac/iphone programming as well.

right now, i'm doing and app that connects to MySQL using mysql connector, but i have a hard time trying to configure Xcode.

somebody can explain how to configure xcode to use mysql connector, or is there any other way to connect to mysql from xcode using C++ or obj C.

i will appreciate your help.

thanks
 
Objective C is built on top of C and there are native OSX libraries for MySQL, so just include it like you would with the normal MySQL library. You can probably practically read the instructions for using MySQL with GCC and be good to go (all the function calls will be the same too)


Edit:

Here are some exact instructions I found for MySQL and XCode

http://forums.mysql.com/read.php?117,51324,127220


These instructions are EXACTLY how you would use it in a normal, say gcc, C project, except XCode gives you a GUI to configure the include and library paths. The step 1 there is probably already done for you in recent versions of OSX.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.