Opened 6 years ago
Closed 5 years ago
#12927 closed Bugs (fixed)
Conflicting types for 'InitializeCriticalSection'
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | smart_ptr |
Version: | Boost 1.63.0 | Severity: | Problem |
Keywords: | Cc: |
Description
When compiling with Visual C++ 2017 Clang/C2 v141_clang_c2 toolset, the following code produces "fatal error : conflicting types for InitializeCriticalSection":
#include <windows.h> #include <boost/math/special_functions/bernoulli.hpp>
The error happens at line 52 in
http://www.boost.org/doc/libs/1_63_0/boost/smart_ptr/detail/lwm_win32_cs.hpp
which reads
extern "C" __declspec(dllimport) void __stdcall InitializeCriticalSection(critical_section *);
Change History (3)
comment:1 by , 6 years ago
Component: | None → smart_ptr |
---|---|
Owner: | set to |
comment:2 by , 6 years ago
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This should be fixed in https://github.com/boostorg/smart_ptr/commit/3568e093bb42da2dcf050c659bb5cbb86acdfbd3