xcode and mysql problems

Discussion in 'Mac Programming' started by ExoticFish, Aug 14, 2005.

  1. ExoticFish macrumors 6502a

    ExoticFish

    Joined:
    Dec 3, 2002
    Location:
    The inner depths of madness, aka Kent, OH
    #1
    i've been learning C++ and building some command line applications using mysql and mysql++(the C++ bindings for mysql), everything is hunky dory until i try to use xcode as my IDE (using vi currently). when i try to compile my program using xcode it comes back with a long list or errors which i can contribute to one in particular error: mysql.h not found. now it finds mysql++ just fine but in the mysql++ headers it calls for mysql.h, which is fine because it compiles just find from the command line. in xcode i have my header search paths for mysql and mysql++ and the library search paths for mysql and the "Other Linker Flags" set to "-lmysqlpp -lmysqlclient -lz" which is the same setup i use to compile it from the command line. anyone else run into a problem like this?

    (sorry to be long winded :cool: )
     
  2. ExoticFish thread starter macrumors 6502a

    ExoticFish

    Joined:
    Dec 3, 2002
    Location:
    The inner depths of madness, aka Kent, OH
    #2
    ok i figured it out, for whatever reason xcode could not find the /usr/local/mysql/lib directory but if you add the mysql.h file to the project it seems to work.
     

Share This Page