Re: Macros redefinition
Paris Rossano <[email protected]> Sat, 18 Apr 2026 15:21:48 +0200
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
in all my .cpp files I normally use this sequence: #include <wx/wxprec.h> #ifndef WX_PRECOMP #include <wx/wx.h> #endif then follow wx includes,for instance: #include <wx/filedlg.h> #include <wx/filename.h> then follow my application includes ... Regards Rossano On 18/04/2026 15:07, Vadim Zeitlin wrote: > On Sat, 18 Apr 2026 06:01:33 -0700 (PDT) Rossano Paris wrote: > > RP> Does anyone know how to get rid of the following warnings? > RP> Are they something that should be solved in the library? > RP> > RP> Visual studio 2026 > RP> MSW SDK:10.0.26100.0 > RP> wx: v3.3.2 > RP> > RP> 1>C:\Program Files (x86)\Windows > RP> Kits\10\Include\10.0.26100.0\um\urlmon.h(751,9): warning C4005: > RP> 'INET_E_CANNOT_LOCK_REQUEST': macro redefinition > RP> 1> (compiling source file > RP> 'file:///sln/client/threads/core/ThClientInformation.cpp') > RP> 1> > RP> \\192.168.84.1\workspace\develop\wxw\wx\wxWidgets-3.3.3\include\wx\msw\missing.h(360,9): > RP> 1> see previous definition of 'INET_E_CANNOT_LOCK_REQUEST' > > This is strange because wx/msw/missing.h only defines this symbol (and all > the other ones) if it's not defined after including windows.h. > > What headers exactly does your source file include and in what order? > > Regards, > VZ > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/6966a330-b21f-4208-b07c-2953abe20e49%40escadasolutions.com.