When compiling boost 1.33.1 with Visual Studio 2005 SP1 for 64 bit AMD on windows I get the following error.

once.obj : error LNK2019: unresolved external symbol _InterlockedCompareExchange referenced in function "long __cdecl `anonymous namespace'::compare_exchange(long * volatile,long,long)" (?compare_exchange@?A0x74ecc88f@@YAJREAJJJ@Z)

From what I have seen this works in multiple other projects. This also works  if I use that header in a new isolated project. I am assuming it is some compiler setting. But I am not sure which.

Any thoughts are greatly appreciated

Thank You

-Leslie