Re: Using Boost C++ library in Xcode
Re: Using Boost C++ library in Xcode
- Subject: Re: Using Boost C++ library in Xcode
- From: Thomas Engelmeier <email@hidden>
- Date: Thu, 13 Sep 2007 19:13:51 +0200
On 13.09.2007, at 18:35, Ivan C Myrvold wrote:
I changed my "Header Search Paths" to "/usr/local/include/
boost-1_34_1", but gets the same result.
In building debug mode, it builds ok, but building in release mode,
I get errors:
boost::re_detail::cpp_regex_traits_implementation<char>::transform_pri
mary(char const*, char const*) const
/Users/imyrvold/Documents/Tansa/cpp/testprojects/boost_example2/
build/boost_example2.build/Release/boost_exam
Once again: Your build does not include all necessary boost object
files. Not everything of boost are templates, there are some c++
implementation files that get buildt into library files (I forgot
if .o or .a). IIRC that is in an hidden folder referenced from
visible .la files. See b.)..
a.) zero link does hide the linker error in "favor" of an runtime
error.
b.) the boost jamfile does IIRC produce tons of libraries in hidden
directories with very lengthy paths.
c.) adding the full path to the project is something I would not do
in anything but very basic projects.
Regarding b.:
My personal preference regarding boost sublibraries is to add
explicitely as few as possible of the required c++ sources of boost
to the project. It saves some grief locating the correct object
files, makes dependencies obvious and ensures compatible C++ compiler
settings. Drawback: potentially longer compile times. Saved
immediately when you have to track down an incompatible compiler
setting.
Regarding c:
For huge third party libraries I use a separate svn repository,
located at the same level as the project folders of dependent
projects, an top-level .xcconfig file to set an placeholder
( BOOST_1_34 ) and relative paths ( $BOOST_1_34/regex/... )
HTH,
Tom_E
_______________________________________________
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