Linking to boost through SConstruct

梦想的初衷 提交于 2019-12-06 08:27:56

I got the exact same error until I rebuilt boost with the address-model=64 parameter to bjam

By default Boost builds for x86 and SConstruct builds by default for x64. To change SConstruct to use x86, use env = Environment(TARGET_ARCH='x86'); or to change Boost to x64, pass the address-model=64 parameter to bjam.

I don't think the lib prefix nor suffix should be present. Try these it like this in your SCons LIBS:

boost_filesystem-vc100-mt-1_44
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!