Author Topic: wxSmith does not build.  (Read 361 times)

Offline ouch

  • Almost regular
  • **
  • Posts: 223
wxSmith does not build.
« on: August 13, 2019, 09:47:00 pm »
When compiling the latest 11825 version I get the following errors:

Code: [Select]
i686-w64-mingw32-g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -std=gnu++11 -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DNOPCH -DBUILDING_PLUGIN -DwxUSE_UNICODE -IC:\Programming\wxWidgets\wxWidgets\lib\gcc_dll\mswu -IC:\Programming\wxWidgets\wxWidgets\include -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -I..\..\..\include\scripting\include -I..\..\..\include\scripting\squirrel -I..\..\..\include\scripting\sqplus -I..\..\..\include\scripting\bindings -I..\..\..\include\mozilla_chardet -I..\..\..\include\mozilla_chardet\mfbt -I..\..\..\include\mozilla_chardet\nsprpub\pr\include -I..\..\..\include\mozilla_chardet\xpcom -I..\..\..\include\mozilla_chardet\xpcom\base -I..\..\..\include\mozilla_chardet\xpcom\glue -c C:\Programming\codeblocks\src\plugins\contrib\wxSmith\wxwidgets\defitems\wxsrichtextstylecomboctrl.cpp -o ..\..\..\.objs31\plugins\contrib\wxSmithLib\wxwidgets\defitems\wxsrichtextstylecomboctrl.o
C:\Programming\codeblocks\src\plugins\contrib\wxSmith\wxwidgets\defitems\wxslistbox.cpp: In member function 'virtual wxObject* wxsListBox::OnBuildPreview(wxWindow*, long int)':
C:\Programming\codeblocks\src\plugins\contrib\wxSmith\wxwidgets\defitems\wxslistbox.cpp:95:5: error: 'wxListBox' was not declared in this scope
     wxListBox* Preview = new wxListBox(Parent,GetId(),Pos(Parent),Size(Parent),0,0, Style());
     ^~~~~~~~~
C:\Programming\codeblocks\src\plugins\contrib\wxSmith\wxwidgets\defitems\wxslistbox.cpp:95:5: note: suggested alternative: 'wxsListBox'
     wxListBox* Preview = new wxListBox(Parent,GetId(),Pos(Parent),Size(Parent),0,0, Style());
     ^~~~~~~~~
     wxsListBox
C:\Programming\codeblocks\src\plugins\contrib\wxSmith\wxwidgets\defitems\wxslistbox.cpp:95:16: error: 'Preview' was not declared in this scope
     wxListBox* Preview = new wxListBox(Parent,GetId(),Pos(Parent),Size(Parent),0,0, Style());
                ^~~~~~~
C:\Programming\codeblocks\src\plugins\contrib\wxSmith\wxwidgets\defitems\wxslistbox.cpp:95:30: error: expected type-specifier before 'wxListBox'
     wxListBox* Preview = new wxListBox(Parent,GetId(),Pos(Parent),Size(Parent),0,0, Style());
                              ^~~~~~~~~

This is being compiled with Mingw64 with this setup: i686-8.1.0-posix-sjlj-rt_v6-rev0 on a windows 7 machine

Anyone else get this?

Oh, and it's being compiled with the trunk build of wxWidgets 283ac3096ddd431b19b36eeb903ba9ed31bcb674 (git updated today)
« Last Edit: August 13, 2019, 09:51:10 pm by ouch »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2492
Re: wxSmith does not build.
« Reply #1 on: August 13, 2019, 10:20:53 pm »

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: wxSmith does not build.
« Reply #2 on: August 14, 2019, 08:37:43 pm »
Yep, that patch fixes it.