PDA

View Full Version : MySQL connector in Xcode




Herrian
Oct 22, 2010, 11:26 AM
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



ulbador
Oct 22, 2010, 02:09 PM
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.