• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
using mysql.h... linking problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: using mysql.h... linking problem
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Xcode 3.0, is it missing the Close Project menu item? sorry group
  • Next by Date: Re: using mysql.h... linking problem
  • Previous by thread: Cocoaheads Lake Forest (92630) meeting 2/13 7pm - Topic: Cocoa 101
  • Next by thread: Re: using mysql.h... linking problem
  • Index(es):
    • Date
    • Thread