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?
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).
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)
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):
Build the win32 binaries
bjam --toolset=msvc-9.0 --build-type=complete stage
Create the directory lib\win32
- Move the contents of stage\lib to lib\win32
- Remove the directories bin.v2 and stage
Build the x64 binaries
bjam --toolset=msvc-9.0 address-model=64 --build-type=complete stage
Create the directory lib\x64
- Move the contents of stage\lib to lib\x64
- Remove the directories bin.v2 and stage