MySQL connector in Xcode

Discussion in 'Mac Programming' started by Herrian, Oct 22, 2010.

  1. Herrian macrumors newbie

    Jul 11, 2010
    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.

  2. ulbador macrumors 68000


    Feb 11, 2010
    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)


    Here are some exact instructions I found for MySQL and XCode,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.

Share This Page