I have a Visual Studio project containing the code of a program (a model). I have created an other project to put the boost tests in it.
The problem is that I can't get it to work.
I can use the boost tests alone in the project, but as soon as I want to link (reference, etc) to the first project (the one I want to run the tests on), the boost test project won't compile :
1>E:\boost_1_53_0\boost/detail/interlocked.hpp(99): warning C4164: '_InterlockedExchange' : fonction intrinsèque non déclarée
1>E:\boost_1_53_0\boost/detail/interlocked.hpp(100): warning C4164: '_InterlockedExchangeAdd' : fonction intrinsèque non déclarée
1>E:\boost_1_53_0\boost/smart_ptr/detail/spinlock_w32.hpp(62): error C3861: '_InterlockedExchange' : identificateur introuvable
I read there that you can't
your code is not C++ but "C++ CLI" and thus you cant use boost. C++ does not have a System namespace. In each .cpp file you can either use C++/CLI (and therefore the System namespace) OR boost. If you want to use the System namespace you have to enable the "Common Langauge Runtime Support", for boost you have to disable it
>> Can anyone confirm that it is not possible to use Boost with a C++/CLI program ?