
16 Dec
2008
16 Dec
'08
9:18 a.m.
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