include problems with XCode and frameworks
include problems with XCode and frameworks
- Subject: include problems with XCode and frameworks
- From: John James <email@hidden>
- Date: Wed, 22 Feb 2006 10:47:30 -0500
I am having problems understanding XCode's include model. I have a sample project (xerces/SAX2Print) that compiles fine using a nearby (in a code tree sense) Xerces.framework (which I also compiled fine in XCode). There are no customized settings in the SAX2Print project. All references in the SAX2Print project to the header files in the framework are of the form:
#include <xercesc/parsers/SAX2XMLFilterImpl.hpp>
Now I copied the example source files from SAX2Print project to my project in an entirely different code tree (getting a new set of SAX2Print-file copies). I have the same Xerces.framework included in my new project [absolute path].
When I compile the SAX2Print files in the new project I get include errors ("No such file or directory") for the xerces references. I note that all the header files in the Xerces.framework are of the "project" sort. I can get them found in my new project if I rebuild the Xerces.framework with them set to "public" and add a build reference to "User Header Search Paths" to:
$(SRCROOT)/../../../../../../../../../xerces-c-src_2_7_0/Projects/MacOS/Xcode/XercesLib/build/Development/Xerces.framework/Headers
and change the above example reference to:
#include "SAX2XMLFilterImpl.hpp"
This seems a bit painful and was not needed for some reason in the sample SAX2Print project. But now I get further errors for includes from within SAX2XMLFilterImpl.hpp to other <xercesc/...> header files
I have tried a myriad of changes to various search paths to define where "<xercesc/" is but to no avail. What is the secret?
Thanks for your help.
_______________________________________________
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