[Repost, first attempt got eaten somehow]
Somewhere in the E.U., le 7 Brumaire de l'An 213
Bonjour
I am trying to ensure that my part of the Boost library works
correctly with Xcode 1.5, and hit a snag.
For better or worse, Boost uses the "#include <boost/...>" syntax
everywhere (including internally). While this was not a problem for
MWCWPro 8.x, it appears to be one for Xcode. More precisely Xcode can't
find the relevant files. I tried including all of boost in the project
(bad), and setting up a code tree (boost, boost,
/Documents/boost_1_31_0/) and pluging that as HEADER_SEARCH_PATHS =
boost, LIBRARY_SEARCH_PATHS = boost, FRAMEWORK_SEARCH_PATHS = boost,
either for the project's build styles or the target's build settings,
all to no avail.
This question has been asked here before, but no trace of any
answer could be found. Likewise, I could not find any useful information
on that topic on Apple's dev site. Any help appreciated.
Merci
Hubert Holin
Eric Albert - 30 Oct 2004 02:46 GMT
> I am trying to ensure that my part of the Boost library works
> correctly with Xcode 1.5, and hit a snag.
[quoted text clipped - 8 lines]
> either for the project's build styles or the target's build settings,
> all to no avail.
If you want '#include <boost/foo.hpp>' to work, you should give your
target a header search path that points to the directory that *includes*
boost.
In other words, if foo.hpp is at
/path/to/my/headers/boost/foo.hpp
you should set your header search path to
/path/to/my/headers
Xcode will search for the path "boost/foo.hpp" within the compiler's
default header search paths and any additional header search paths you
specify.
Hope this helps,
Eric

Signature
Eric Albert ejalbert@cs.stanford.edu
http://outofcheese.org/