2

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?

MoonKnight
  • 23,214
  • 40
  • 145
  • 277
user243655
  • 7,749
  • 8
  • 30
  • 33
  • This is a possible duplicate. Either way, [this link](http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010) should give you everything you need... – MoonKnight Feb 10 '12 at 16:19
  • Does boost log detail error in a log file while compiling boost? – user243655 Feb 10 '12 at 16:31
  • Depends on you specified compilation options. It can me made to dump an error log I belive. But I am no expert, I have built is a handfull of times and never had any major issues. Check the manual [here](http://www.boost.org/boost-build2/doc/html/index.html) or do some more digging in the link I gave above. All the best... – MoonKnight Feb 10 '12 at 16:53
  • 1
    how is C tag related? – Bartek Banachewicz May 17 '13 at 12:08

2 Answers2

8

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

  • God bless you sir. Had to run cmake and msbuild commands for amazon gamelift and couldn't understand for the longest time what the issue. Whoever you are, you are my hero! – Chris Gong Jan 19 '19 at 23:30
6

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).

Vydra21
  • 101
  • 1
  • 3
  • 2
    The options '--abbreviate-paths' and '--hash' are now documented: [3.4.2. Options](https://boostorg.github.io/build/manual/develop/index.html#bbv2.overview.invocation.options). The option '--hash' produces shorter paths. – NikitaFeodonit Feb 19 '19 at 08:16