Re: Problem finding c++ headers...
Re: Problem finding c++ headers...
- Subject: Re: Problem finding c++ headers...
- From: Chris Espinosa <email@hidden>
- Date: Sat, 26 Nov 2005 19:19:25 -0800
On Nov 26, 2005, at 3:29 PM, Steven Hamblin wrote:
Hello,
I apologize for the rookie nature of this question (and if it's been asked before; I couldn't find anything, but ...<shrug>). I'm trying to use a C++ library brought over from *nix - specifically the EO Evolutionary Computation library, but I think the question should apply generally - in a C++ project, and I'm having trouble compiling when I try to use the library in XCode. I installed the library as in the documentation (./configure, make, make install), and everything seemed to go all right, as the header files for the library are in /usr/local/include.
I'm trying to compile an example program that came with the library, which starts off like this:
#include <eo>
#include <es.h>
However, XCode immediately tells me it can't find the header files. (i.e. error: eo: No such file or directory.) The example program compiles fine with the makefile that came with the library.
What can I do to get XCode to find the header files? And, incidentally, when I finally *do* get XCode to find the headers, will I have to do anything special to get the libraries to link as well?
(I'm running XCode 2.2 on OS X 10.4.3.)
Thanks so much for any help you can offer!
If the library installs its headers in /usr/local/include, then you just need to add "/usr/local/includes" to the Header Search Paths build setting. You can do this for just the target that uses the library, or at the project level if all targets are going to need it.
And yes, you should also add "/usr/local/lib" to the Library Search Paths for the parallel issue for linking.
http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide21/Contents/Resources/en.lproj/05_04_bs_build_settings/chapter_31_section_5.html#//apple_ref/doc/uid/TP40002691-BACGEIHB
Chris
_______________________________________________
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