views:

1182

answers:

4

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?

A: 

There's no special version for 64-bit code. I've built the normal Boost distribution with the Microsoft 64-bit compiler. As I recall, there were a couple of minor issues from Boost Jam getting confused about the tools to use, but nothing sufficiently hairy that I remember it in any detail, even though I did it only a couple weeks ago or so (within a day or two of 1.42 being released).

Jerry Coffin
A: 

It is intended to work, but there are apparently some minor failures that you'll probably have to evaluate for yourself. Very detailed compiler-specific results here:

http://www.boost.org/development/tests/release/developer/summary.html

In your case, you will want to drill down in the "fails" in the column marked Win2008_R2(x64)

IvyMike
yes, you have to build if you want to link the library with 64 bit program
ra170
+8  A: 

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
Moleski
You can specify the stage directory as well, which removes the need to copy the resulting libraries around:bjam --toolset=msvc-9.0 address-model=64 --build-type=complete --stagedir=lib\x64 stage
hkaiser
@hkaiser When I tried that the libraries ended up in `lib\x64\lib`.
Tim Sylvester
what is _stage_?
Gollum
+2  A: 

I've got the built binaries on my site: http://boost.teeks99.com

teeks99
Great that you provide this, since BoostPRo (who provides binaries for Boost libraries) doesn't give x64 versions. Thanks!
CharlesB