Building Boost with MinGW64 without MASM

前端 未结 5 2130
孤街浪徒
孤街浪徒 2021-01-06 14:11

I tried to build the Boost library for native 64bit using MinGW64 compiler, but got some failures. Any pointers are appreciated. Thanks.

I got the bjam.exe (b2.exe)

5条回答
  •  抹茶落季
    2021-01-06 14:39

    (If this is relevant still) This happens when your build folders have msvc artifacts left in there. I'm assuming your project-config.jam was initially

    import option ;
    using msvc ; 
    

    and you had built for msvc then changed to "using gcc" In that case you need to issue the following first

    bjam --clean
    

    which should clear the artifacts from msvc build and then you can issue and things should be fine

    bjam toolset=gcc variant=..... and so on and on
    

    by the way I saw you writing you had Windows 7 x64. your bjam command needs to have adress-model=64 otherwise 32bit binaries will be produced...

提交回复
热议问题