Boost logo

Boost :

Subject: Re: [boost] [winapi] [thread] Conflicting declarations on MinGW
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2016-01-01 15:48:16


Le 31/12/2015 11:40, Antony Polukhin a écrit :
> Hi,
>
> Some of the Boost.DLL tests produce following warnings:
>
> ../boost/thread/win32/thread_primitives.hpp:175:83: warning: declaration of
> 'void* boost::detail::win32::GetModuleHandleA(const char*)' with C language
> linkage
> ../boost/detail/winapi/dll.hpp:47:1: warning: conflicts with previous
> declaration 'HINSTANCE__* GetModuleHandleA(boost::detail::winapi::LPCSTR_)'
> ../boost/thread/win32/thread_primitives.hpp:195:94: warning: declaration of
> 'int (__attribute__((__stdcall__)) *
> boost::detail::win32::GetProcAddress(void*, const char*))()' with C
> language linkage
> ../boost/detail/winapi/dll.hpp:82:1: warning: conflicts with previous
> declaration 'int (__attribute__((__stdcall__)) *
> GetProcAddress(boost::detail::winapi::HMODULE_,
> boost::detail::winapi::LPCSTR_))()'
>
>
> Andrey, Vicente what's the best way to resolve such issues?
>
Hi,

I have no access to a Windows machine.

Any patch is welcome.

Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk