Search code examples
c++visual-studio-2008boost

64-bit version of Boost for 64-bit windows


Is there a version of 64-bit Boost library for VS2008 ? Or do I have to compile one myself? if, so, does anyone have experience with it?


Solution

  • As a short answer:

    bjam --toolset=msvc-9.0 address-model=64 --build-type=complete
    

    As a longer answer, here are my build notes for having VS .NET 2008 32-bit and 64-bit boost libraries in the same hierarchy (which is I suspect a common use case):

    1. Build the win32 binaries

      bjam --toolset=msvc-9.0 --build-type=complete stage
      
    2. Create the directory lib\win32

    3. Move the contents of stage\lib to lib\win32
    4. Remove the directories bin.v2 and stage
    5. Build the x64 binaries

      bjam --toolset=msvc-9.0 address-model=64 --build-type=complete stage
      
    6. Create the directory lib\x64

    7. Move the contents of stage\lib to lib\x64
    8. Remove the directories bin.v2 and stage