using mysql.h... linking problem
using mysql.h... linking problem
- Subject: using mysql.h... linking problem
- From: "Mark McCray" <email@hidden>
- Date: Mon, 11 Feb 2008 00:13:37 -0500
Hi there,I'm trying to use the mysql client in my cocoa app. (I'm very new
to using 3rd party api's within xcode.)
In my simple app, i've included the "mysql.h" file. And in the project
settings I've specified in the "Build" area that the 'Header Search Paths'
should use /usr/local/mysql recursively.
My problem is that when I go to build my app I get a lot of linking errors.
When it's 'Building target "MyApp" of project "MyApp" with configuration
"Release"..
in Linking /Users/mm/MyApp/build/Release/MyApp.app/Contents/MacOS/MyApp
There are 10 errors.
all of the errors say something like:
"_mysql_store_result", referenced from:
_main in main.o
"_mysql_close", referenced from:
_main in main.o
symbol(s) not found
collect2: ld returned 1 exit status
Do i have to create a build phase that brings over any of the mysql stuff?
Or what else is involved when you're importing 3rd party header files?
Thanks,
mark
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden