Including C/C++ headers
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