Boost logo

Boost Users :

Subject: Re: [Boost-users] compile boost thread lib for iphone failed! the darwin g++ cant find head files for STL (string, cstddef)..how to solve this problem?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-09-01 11:01:13


AMDG

terryc tang wrote:
> i do the work as following:
> 0.install bjam
> 1. down boost_1_40_0
> 2. untar to disk root directory
> 3. ./bootstrap.sh ---with-library=thread
> 4. configure user-config.jam as following:
> using darwin : 4.2.1~iphone
> :
> /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++
> : <striper>
> : <architecture>arm <target-os>iphone <macosx-version>iphone-2.1
> ;
> using darwin : 4.2.1~iphonesim
> :
> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++
> : <striper>
> : <architecture>x86 <target-os>iphone <macosx-version>iphonesim-2.1
> ;
> 5. command at console:
> bjam --prefix=/usrLibs/boostiPhoneDev toolset=darwin architecture=arm
> target-os=iphone macosx-version=iphone-2.1 define=_LITTLE_ENDIAN link=static
> install
> ...
> ...
> ....
> ..
> Any setting missing ? how to deal with it?
>
> In file included from ./boost/config.hpp:40,
> from ./boost/thread/detail/config.hpp:10,
> from libs/thread/src/pthread/thread.cpp:8:
> ./boost/config/select_stdlib_config.hpp:17:19: error: cstddef: No such file
> or directory
>

Can you use g++ directly to compile a minimal
  #include <cstddef>
?

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net