Thanks for your reply, sorry for give the wrong information, indeed, I'm cross compiling boost for blackfin not arm, but I'm trying use arm settings for cross compile, this works when I'm building Qt 4.4.x on blackfin.
But in boost cross compilation, if I don't manually define __arm__, the compilation will never reach source like: #ifdef __arm__
And my current problem is while building gnash to blackfin, the linker said there has no reference of: _sync_fetch_and_add_4,
I can grep _sync_fetch_and_add_4 in libboost_thread-gcc41-mt-1_37.a.

So confused here...

BR

Leslie

> To: boost-users@lists.boost.org
> From: vladimir@codesourcery.com
> Date: Tue, 16 Dec 2008 12:18:08 +0300
> Subject: Re: [Boost-users] boost compile to arm
>
> leslie lige wrote:
>
> >
> > Hi,
> >
> > I'm tring to cross compile boost 1.37 to arm, I found that I need to add "__arm__" definition to
> > get compile correctly, but I don't know where do I define __arm__ macro will be global to all.
> > Defautly, the arch is defined as __i386__ when I do cross compile with arm toolchain.
>
> You don't have to define __arm__ macro, it appears like you're doing something wrong -- like
> not actually using a cross-compiler. What exactly did you do? You can find some instructions
> at:
>
> http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html
>
> - Volodya
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!