Opened 6 years ago

Closed 5 years ago

#12927 closed Bugs (fixed)

Conflicting types for 'InitializeCriticalSection'

Reported by: kaba <kaba@…> 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 John Maddock, 6 years ago

Component: Nonesmart_ptr
Owner: set to Peter Dimov

comment:3 by Peter Dimov, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.