Failed to build boost

2019-05-26 02:44发布

问题:

I have been able to compile boost on Windows Vista using the following commands:

bootstrap.bat

bjam.exe --with-filesystem --with-thread --toolset=msvc

However, when I issue the same command on Windows 7, I get this:

'failed to write output file 'bin.v2\libs\thread\build\msvc-8.0\release\link-static\threading-multi\libboost_thread-vc80-mt-1_48.lib.rsp'!'

What am I doing wrong?

回答1:

I had this and the problem turned out to be that boost seems to have some problems with long path names. Moved the directories up a couple of levels and it all started working. But had me pulling my hair out for a while



回答2:

You can use bjam.exe --abbreviate-paths

Found here: http://lists.boost.org/boost-build/2007/01/16028.php

I had similar problem and this switch helped me a lot (although it is not documented).



标签: c++ c boost