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

后端 未结 2 1925
情书的邮戳
情书的邮戳 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:44

    If you are using C++ Boost 1.40, use:

    bjam address-model=32
    

    If you are using eariler version, consider upgrading. If you cannot, use

    bjam address-model=32 architecture=x86
    

    I also recommend that you take a look at the fine manual

提交回复
热议问题