Opened 4 years ago

Closed 4 years ago

#13600 closed Bugs (fixed)

Conflicting types for 'InitializeCriticalSection'

Reported by: markus_bonk@… Owned by: Frank Mori Hess
Milestone: To Be Determined Component: signals2
Version: Boost 1.66.0 Severity: Problem
Keywords: Cc:

Description

When compiling with Visual C++ 2017 LLVM-vs2017 toolset (CLang), the following code produces "fatal error : conflicting types for InitializeCriticalSection?":

#include <windows.h> #include <boost/signals2.hpp>

The error happens at line 55 in

http://www.boost.org/doc/libs/1_66_0/boost/signals2/detail/lwm_win32_cs.hpp

which reads

extern "C" declspec(dllimport) void stdcall InitializeCriticalSection(critical_section *);

This bug is similar to https://svn.boost.org/trac10/ticket/12927

Change History (1)

comment:1 by Frank Mori Hess, 4 years ago

Resolution: fixed
Status: newclosed

I believe this has already been fixed in boost 1.67. Feel free to reopen if I'm wrong.

Note: See TracTickets for help on using tickets.