How do I force a 32-bit build of Boost with GCC?

后端 未结 2 1929
情书的邮戳
情书的邮戳 2020-12-09 04:08

How do I force a 32-bit build of Boost with GCC? Currently attempting by putting this line in my user-config.jam, but it does not work:

using gc         


        
2条回答
  •  佛祖请我去吃肉
    2020-12-09 04:40

    This answer helped me toward a solution that worked for me. I was trying to compile a 32-bits version of boost_1_43_0 on 64-bits debian and eventually came up with this:

    ./bjam                 \
      cflags=-m32          \
      cxxflags=-m32        \
      address-model=32     \
      threading=multi      \
      architecture=x86     \
      instruction-set=i686 \ 
      stage
    

提交回复
热议问题