Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / October 2004



Tip: Looking for answers? Try searching our database.

Xcode 1.5 and "system" includes (in particular, Boost), again.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hubert Holin - 29 Oct 2004 16:33 GMT
[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/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.