c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by tomay3000 »

Here is the compiler log:

Code: Select all

1>------ Build started: Project: aui, Configuration: Debug Win32 ------
1>Compiling...
1>barartmsw.cpp
2>------ Build started: Project: adv, Configuration: Debug Win32 ------
2>Compiling...
2>richtooltip.cpp
1>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
1>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
1>tabartmsw.cpp
2>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
2>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
2>richtooltipg.cpp
2>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
2>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
2>Generating Code...
1>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
1>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
2>Build log was saved at "file://c:\wxWidgets-3.1.1\build\msw\vc_mswud\adv\BuildLog.htm"
2>adv - 2 error(s), 0 warning(s)
1>Generating Code...
1>Build log was saved at "file://c:\wxWidgets-3.1.1\build\msw\vc_mswud\aui\BuildLog.htm"
1>aui - 2 error(s), 0 warning(s)
3>------ Build started: Project: core, Configuration: Debug Win32 ------
3>Compiling...
3>anybutton.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>bmpbuttn.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>checkbox.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>combo.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>combobox.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>control.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>menuitem.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>..\..\src\msw\menuitem.cpp(305) : error C2065: 'MENU_POPUPITEM' : undeclared identifier
3>..\..\src\msw\menuitem.cpp(309) : error C2065: 'MENU_POPUPCHECK' : undeclared identifier
3>..\..\src\msw\menuitem.cpp(312) : error C2065: 'MENU_POPUPCHECKBACKGROUND' : undeclared identifier
3>..\..\src\msw\menuitem.cpp(316) : error C2065: 'MENU_POPUPSUBMENU' : undeclared identifier
3>..\..\src\msw\menuitem.cpp(320) : error C2065: 'MENU_POPUPSEPARATOR' : undeclared identifier
3>..\..\src\msw\menuitem.cpp(333) : error C2065: 'MENU_POPUPBACKGROUND' : undeclared identifier
3>..\..\src\msw\menuitem.cpp(942) : error C2065: 'MENU_POPUPGUTTER' : undeclared identifier
3>notebook.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>radiobut.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>renderer.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>statbox.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>statusbar.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>systhemectrl.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>textentry.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>toolbar.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>treectrl.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>uxtheme.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>window.cpp
3>c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition
3>        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\tmschema.h(647) : see declaration of 'MENUPARTS'
3>Generating Code...
3>Build log was saved at "file://c:\wxWidgets-3.1.1\build\msw\vc_mswud\core\BuildLog.htm"
3>core - 25 error(s), 0 warning(s)
========== Build: 0 succeeded, 3 failed, 20 up-to-date, 0 skipped ==========
Hello, How to resolve this?

Thank you
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by ONEEYEMAN »

Hi,
Which compiler do you use?
Did you use any non-standard options?

Thank you.
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by tomay3000 »

ONEEYEMAN wrote:Hi,
Which compiler do you use?
Did you use any non-standard options?

Thank you.
As you can see in the log it is Visual Studio 8 (2005, with the all the updates installed).
And I used the solution file "wx_vc8.sln" located under "C:\wxWidgets-3.1.1\build\msw" directory.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by ONEEYEMAN »

Hi,
Did you use any non-standard options when compiling?

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by doublemax »

Can you try an older wxWidgets version? VS2005 is pretty old and it's possible that you're the first person to try this for ages.
Use the source, Luke!
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by tomay3000 »

ONEEYEMAN wrote:Hi,
Did you use any non-standard options when compiling?

Thank you.
Nothing special just hitting the "Compile Solution" from the menu
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by tomay3000 »

doublemax wrote:Can you try an older wxWidgets version? VS2005 is pretty old and it's possible that you're the first person to try this for ages.
v3.0.4 got no errors!

I have seen that uxtheme.h file changed a lot, which caused the error.

But I want the v3.1.1 one
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: c:\wxWidgets-3.1.1\include\wx/msw/uxtheme.h(116) : error C2011: 'MENUPARTS' : 'enum' type redefinition

Post by doublemax »

In that case please open a bug report at http://trac.wxwidgets.org/
Use the source, Luke!
Post Reply