• 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
Including C/C++ headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Including C/C++ headers


  • Subject: Including C/C++ headers
  • From: Andrew Wood <email@hidden>
  • Date: Wed, 6 May 2009 23:58:10 +0100

Im trying to use a C++ .a library and its associated headers in a Cocoa project.

1. I've renamed the .m files as .mm

2. I've worked out how to set the header search & library search paths by selecting the project in the left hand pane and going to 'Get info'.

3. I've also added the .a libraries to the 'Frameworks' list

The problem I have is that one of the headers (DBTransaction.h which XCode can locate no problem) references another (mysql.h), which although I added it to the search path it cant find.

If I change the include line from #include <mysql.h> to #include "mysql.h" it can find it. Evidently step 2 doesnt do what I thought it did- which is setup a -L flag to gcc?

Any ideas.

Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Including C/C++ headers
      • From: Jason Foreman <email@hidden>
  • Prev by Date: Re: Xcode and SVN
  • Next by Date: Re: Newbie needs help interpreting Xcode compiler errors and warnings
  • Previous by thread: Re: Xcode and SVN
  • Next by thread: Re: Including C/C++ headers
  • Index(es):
    • Date
    • Thread