compile boost thread lib for iphone failed! the darwin g++ cant find head files for STL (string, cstddef)..how to solve this problem?

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 In file included from ./boost/config/select_stdlib_config.hpp:33, from ./boost/config.hpp:40, from ./boost/thread/detail/config.hpp:10, from libs/thread/src/pthread/thread.cpp:8: ./boost/config/no_tr1/utility.hpp:21:21: error: utility: No such file or directory In file included from ./boost/thread/pthread/thread_data.hpp:9, from ./boost/thread/thread.hpp:17, from libs/thread/src/pthread/thread.cpp:10: ./boost/thread/exceptions.hpp:19:18: error: string: No such file or directory ./boost/thread/exceptions.hpp:20:21: error: stdexcept: No such file or directory In file included from ./boost/smart_ptr/shared_ptr.hpp:27, from ./boost/shared_ptr.hpp:17, from ./boost/thread/pthread/thread_data.hpp:10, from ./boost/thread/thread.hpp:17,

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

hi, thanks for your replay, i write a simple class and include cstdef,
string in head file.
i compile it using g++ and g++ ,i find the problem.
compiler printf the message when compiling as following.
*./g++ -c tst.cpp -o armtst.o -v*
using g++:
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/i686-apple-darwin9
/usr/include/c++/4.0.0/backward
/usr/lib/gcc/i686-apple-darwin9/4.2.1/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
using arm-g++:
*./arm-apple-darwin9-g++-4.0.1 -c tst.cpp -o armtst.o -v*
#include "..." search starts here:
#include <...> search starts here:
End of search list.
I get known that the compiler dont find the include path for the arm g++, so
i dont known
how to add these search path at bjam configure file.
i'm new to linux, so please help me!
many thanks!
On Tue, Sep 1, 2009 at 11:01 PM, Steven Watanabe
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

my god, it's all my fault!!!!
i down the wrong zip files. zip format is for windows, i down the tar
format, it work now!
thank you !
On Thu, Sep 3, 2009 at 11:09 AM, terryc tang
hi, thanks for your replay, i write a simple class and include cstdef, string in head file. i compile it using g++ and g++ ,i find the problem.
compiler printf the message when compiling as following.
*./g++ -c tst.cpp -o armtst.o -v*
using g++:
#include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.0.0 /usr/include/c++/4.0.0/i686-apple-darwin9 /usr/include/c++/4.0.0/backward /usr/lib/gcc/i686-apple-darwin9/4.2.1/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list.
using arm-g++: *./arm-apple-darwin9-g++-4.0.1 -c tst.cpp -o armtst.o -v*
#include "..." search starts here: #include <...> search starts here: End of search list.
I get known that the compiler dont find the include path for the arm g++, so i dont known how to add these search path at bjam configure file.
i'm new to linux, so please help me!
many thanks!
On Tue, Sep 1, 2009 at 11:01 PM, Steven Watanabe
wrote: 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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Steven Watanabe
-
terryc tang