Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#16039 closed build error (fixed)

build error under wxMSW with wxuniv=1

Reported by: maryjeck Owned by:
Priority: normal Milestone:
Component: wxUniv (any port) Version: 3.0.0
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

the message is like this:

g++ -c -o gcc_mswunivudll\monodll_toplevel.o -O2 -mthreads -DHAVE_W32API_H -DWXMSW -DWXUNIVERSAL -DNDEBUG -D_UNICODE -I..\..\lib\gcc_dll\mswunivu -I..\..\include -I\include\cairo -W -Wall -DWXBUILDING -I..\..\src\tiff\libtiff -I..\..\src\jpeg -I..\..\src\png -I..\..\src\zlib -I..\..\src\regex -I..\..\src\expat\lib -I..\..\src\stc\scintilla\include -I..\..\src\stc\scintilla\lexlib -I..\..\src\stc\scintilla\src -DWX -DSCI_LEXER -DLINK_LEXERS -DwxUSE_BASE=1 -DWXMAKINGDLL -Wno-ctor-dtor-privacy -MTgcc_mswunivudll\monodll_toplevel.o -MFgcc_mswunivudll\monodll_toplevel.o.d -MD -MP ../../src/msw/toplevel.cpp
../../src/msw/toplevel.cpp: In member function 'bool wxTopLevelWindowMSW::HandleMenuPopup(wxEventType, WXHMENU)':
../../src/msw/toplevel.cpp:1571:52: error: 'class wxMenu' has no member named 'GetHMenu'

if ( wxCurrentPopupMenu && wxCurrentPopupMenu->GetHMenu() == hMenu )


makefile.gcc:7782: recipe for target 'gcc_mswunivudll\monodll_toplevel.o' failed
mingw32-make: * [gcc_mswunivudll\monodll_toplevel.o] Error 1

Change History (3)

comment:1 Changed 8 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [76077]) Compilation fix for wxUniv/MSW in wxTLW code dealing with menus.

The code used by WM_INITMENUPOPUP and WM_EXITMENULOOP handlers shouldn't be
used in wxUniv build as it's not used there anyhow and doesn't even compile.

Closes #16039.

comment:2 Changed 8 months ago by maryjeck

another error with the fixed wxTLW :

../../src/msw/toplevel.cpp: In member function 'virtual WXLRESULT wxTopLevelWindowMSW::MSWWindowProc(WXUINT, WXWPARAM, WXLPARAM)':
../../src/msw/toplevel.cpp:436:73: error: 'HandleMenuPopup' was not declared in this scope

processed = HandleMenuPopup(wxEVT_MENU_OPEN, (WXHMENU)wParam);


../../src/msw/toplevel.cpp:445:64: error: 'HandleMenuSelect' was not declared in this scope

processed = HandleMenuSelect(item, flags, hmenu);


../../src/msw/toplevel.cpp:456:54: error: 'HandleExitMenuLoop' was not declared in this scope

processed = HandleExitMenuLoop(wParam);


makefile.gcc:10250: recipe for target 'gcc_mswunivu\monolib_toplevel.o' failed
mingw32-make: * [gcc_mswunivu\monolib_toplevel.o] Error 1
mingw32-make:
* Waiting for unfinished jobs....

comment:3 Changed 8 months ago by VZ

(In [76084]) Another compilation fix for wxUniv/MSW build.

This should have been part of r76077, see #16039.

Note: See TracTickets for help on using tickets.