<div dir="rtl"><div dir="ltr">Try -DBOOST_USE_WINDOWS_H</div><div dir="ltr">-DBOOST_SP_USE_STD_ATOMIC may also be needed.<br></div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2016-02-11 7:19 GMT+02:00 Dennis Luehring via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Environment:<br>
Win7 x64,<br>
Visual Studio 2010(+ all udpates)<br>
clang: Windows snapshot builds from <a href="http://llvm.org/builds/" rel="noreferrer" target="_blank">http://llvm.org/builds/</a>, Windows installer, based on SVN r260114 (9 February 2016).<br>
<br>
how to reproduce:<br>
<br>
1. download Boost 1.60 from (<a href="http://boost.org" rel="noreferrer" target="_blank">boost.org</a>, <a href="https://sourceforge.net/projects/boost/files/boost/1.60.0/" rel="noreferrer" target="_blank">https://sourceforge.net/projects/boost/files/boost/1.60.0/</a>)<br>
2. open Microsoft Visual Studio Console (for building on command line)<br>
3. build boost with VS 2010 using this command in the boost_1_60_0 directory<br>
<br>
b2 --toolset=msvc-10.0 --libdir=lib32-msvc-10.0 --build-dir=build_dir --with-thread link=static variant=release,debug threading=multi runtime-link=static install<br>
<br>
4. add boost_1_60_0 directory to include path, boost_1_60_0\lib32-msvc-10.0 to lib path<br>
<br>
5. try to compile with clang-cl in VS 2010<br>
---- internal_tests.cpp<br>
#include <boost/thread/mutex.hpp><br>
#include <Windows.h><br>
<br>
----<br>
<br>
gives me a bunch of errors like<br>
<br>
1> In file included from internal_tests.cpp:2:<br>
1> In file included from c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\Windows.h:156:<br>
1>c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winbase.h(2635): error : conflicting types for 'GetProcAddress'<br>
1> GetProcAddress (<br>
1> ^<br>
1> D:\projects\test\\..\boost_1_60_0\boost/thread/win32/thread_primitives.hpp(195,58) : note: previous declaration is here<br>
1> __declspec(dllimport) farproc_t __stdcall GetProcAddress(void *, const char *);<br>
1> ^<br>
1> In file included from internal_tests.cpp:2:<br>
1> In file included from c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\Windows.h:156:<br>
1>c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winbase.h(5387): error : conflicting types for 'GetSystemTime'<br>
1> GetSystemTime(<br>
1> ^<br>
........<br>
<br>
anything i can do to get it compiled?<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>