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!
AMDGCan you use g++ directly to compile a minimal
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
#include <cstddef>
?
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users