WxWidgets compile and run HelloWorld

I started with wx3.1.0

The library was compiled successfully. The following problems were encountered when compiling HelloWorld

------------- Build: Debug in test1 (compiler: GNU GCC Compiler)---------------


windres.exe -IF:\wxWidgets-3.1.0\include -IF:\wxWidgets-3.1.0\lib\gcc_lib\mswu -J rc -O coff -i D:\CODEBL~1\test1\resource.rc -o obj\Debug\resource.res
g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wall -g -IF:\wxWidgets-3.1.0\include -IF:\wxWidgets-3.1.0\lib\gcc_lib\mswu -c D:\CodeBlockProjects\test1\test1App.cpp -o obj\Debug\test1App.o
g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wall -g -IF:\wxWidgets-3.1.0\include -IF:\wxWidgets-3.1.0\lib\gcc_lib\mswu -c D:\CodeBlockProjects\test1\test1Main.cpp -o obj\Debug\test1Main.o
g++.exe -LF:\wxWidgets-3.1.0\lib\gcc_lib -o bin\Debug\test1.exe obj\Debug\test1App.o obj\Debug\test1Main.o obj\Debug\resource.res -mthreads -lwxmsw30u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
F:/Qt5.6.0/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 12 second(s))
1 error(s), 0 warning(s) (0 minute(s), 12 second(s))

This is a version problem. The current version of codeblhooks supports 3.0. X at most, but does not support 3.1. X, so wxmsw30u is required here. No, version 3.1.0 only has wxwsw31u

So I changed the version, wx3.0.2 also uses mingw32 make to compile

Half way through the compilation, this problem appears

if not exist ..\..\lib\gcc_lib\mswu mkdir ..\..\lib\gcc_lib\mswu
g++ -c -o gcc_mswu\monolib_any.o  -O2 -mthreads  -DHAVE_W32API_H -D__WXMSW__   -DNDEBUG    -D_UNICODE  -I..\..\lib\gcc_lib\mswu -I..\..\include  -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 -D__WX__ -DSCI_LEXER -DLINK_LEXERS -DwxUSE_BASE=1   -Wno-ctor-dtor-privacy   -MTgcc_mswu\monolib_any.o -MFgcc_mswu\monolib_any.o.d -MD -MP ../../src/common/any.cpp
In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\type_traits:35:0,
                 from ..\..\include/wx/strvararg.h:25,
                 from ..\..\include/wx/string.h:46,
                 from ..\..\include/wx/any.h:19,
                 from ../../src/common/any.cpp:18:
c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from ..\..\include/wx/string.h:46:0,
                 from ..\..\include/wx/any.h:19,
                 from ../../src/common/any.cpp:18:
..\..\include/wx/strvararg.h:350:18: error: 'is_enum' in namespace 'std' does not name a template type
     typedef std::is_enum<T&> is_enum;
                  ^
..\..\include/wx/strvararg.h:354:54: error: 'is_enum' was not declared in this scope
     enum { value = wxFormatStringSpecifierNonPodType<is_enum::value&>::value };
                                                      ^
..\..\include/wx/strvararg.h:354:68: error: template argument 1 is invalid
     enum { value = wxFormatStringSpecifierNonPodType<is_enum::value&>::value };
                                                                    ^
makefile.gcc:8899: recipe for target 'gcc_mswu\monolib_any.o' failed
mingw32-make: *** [gcc_mswu\monolib_any.o] Error 1

F:\迅雷下载\wxWidgets-3.0.2\build\msw&>mingw32-make -version
GNU Make 3.82.90
Built for i686-pc-mingw32
Copyright (C) 1988-2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

This is the problem of C + + 11 support. For convenience, I choose to use vs compiler: (vs2013 Ultimate Edition)

Open wxwidgets-3.0.2/build/MSW/Wx_ Vc12. SLN to perform release compilation.

1&>------ Started generation: Project: _custom_build, Configuration: Release Win32 ------
2&>------ Started generation: Project: wxzlib, Configuration: Release Win32 ------
3&>------ Started generation: Project: wxexpat, Configuration: Release Win32 ------
4&>------ Started generation: Project: wxpng, Configuration: Release Win32 ------
1&>  Creating ..\..\lib\vc_lib\mswu\wx\setup.h
3&>  xmlparse.c
3&>  xmlrole.c
3&>  xmltok.c
4&>  png.c
4&>  pngerror.c
4&>  pngget.c
4&>  pngmem.c
1&>  Copied         1 file。
1&>  Creating ..\..\lib\vc_lib\mswu\wx\msw\rcdefs.h
2&>  adler32.c
2&>  compress.c
2&>  crc32.c
2&>  deflate.c
1&>  genrcdefs.h
5&>------ Started Generation: Project: wxregex, Configuration: Release Win32 ------
2&>  gzclose.c
2&>  gzlib.c
2&>  gzread.c
5&>  regcomp.c
5&>  regerror.c
5&>  regexec.c
5&>  regfree.c
2&>  gzwrite.c
2&>  infback.c
2&>  inffast.c
2&>  inflate.c
2&>  inftrees.c
2&>  trees.c
2&>  uncompr.c
2&>  zutil.c
4&>  pngpread.c
4&>  pngread.c
4&>  pngrio.c
4&>  pngrtran.c
2&>  wx_vc12_wxzlib.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxzlib.lib
3&>  wx_vc12_wxexpat.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxexpat.lib
5&>  wx_vc12_wxregex.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxregexu.lib
6&>------ Started generation: Project: wxjpeg, Configuration: Release Win32 ------
4&> pngrutil.c
4&> pngset.c
7&> ------ Started generation: Project: wxtiff, Configuration: Release Win32 ------
8&> ------ Started generated: Project: base, config: Release Win32 ------
4&>  pngtrans.c
6&>  jcapimin.c
6&>  jcapistd.c
6&>  jccoefct.c
6&>  jccolor.c
8&>  dummy.cpp
6&>  jcdctmgr.c
6&>  jchuff.c
6&>  jcinit.c
6&>  jcmainct.c
6&>  jcmarker.c
6&>  jcmaster.c
6&>  jcomapi.c
6&>  jcparam.c
6&>  jcphuff.c
6&>  jcprepct.c
6&>  jcsample.c
6&>  jctrans.c
6&>  jdapimin.c
6&>  jdapistd.c
6&>  jdatadst.c
4&>  pngwio.c
7&>  tif_aux.c
7&>  tif_close.c
7&>  tif_codec.c
7&>  tif_color.c
4&>  pngwrite.c
4&>  pngwtran.c
7&>  tif_compress.c
7&>  tif_dir.c
7&>  tif_dirinfo.c
4&>  pngwutil.c
7&>  tif_dirread.c
7&>  tif_dirwrite.c
7&>  tif_dumpmode.c
7&>  tif_error.c
7&>  tif_extension.c
7&>  tif_fax3.c
7&>  tif_fax3sm.c
7&>  tif_flush.c
7&>  tif_getimage.c
7&>  tif_jpeg.c
7&>  tif_luv.c
7&>  tif_lzw.c
6&>  jdatasrc.c
6&>  jdcoefct.c
6&>  jdcolor.c
6&>  jddctmgr.c
6&>  jdhuff.c
6&>  jdinput.c
6&>  jdmainct.c
6&>  jdmarker.c
6&>  jdmaster.c
6&>  jdmerge.c
6&>  jdphuff.c
6&>  jdpostct.c
6&>  jdsample.c
6&>  jdtrans.c
6&>  jerror.c
6&>  jfdctflt.c
7&>  tif_next.c
7&>  tif_ojpeg.c
7&>  tif_open.c
7&>  tif_packbits.c
7&>  tif_pixarlog.c
7&>  tif_predict.c
7&>  tif_print.c
7&>  tif_read.c
7&>  tif_strip.c
7&>  tif_swab.c
7&>  tif_thunder.c
7&>  tif_tile.c
6&>  jfdctfst.c
7&>  tif_version.c
7&>  tif_warning.c
6&>  jfdctint.c
6&>  jidctflt.c
7&>  tif_win32.c
6&>  jidctfst.c
7&>  tif_write.c
6&>  jidctint.c
6&>  jidctred.c
7&>  tif_zip.c
6&>  jmemmgr.c
6&>  jmemnobs.c
6&>  jquant1.c
6&>  jquant2.c
8&>  any.cpp
6&>  jutils.c
8&>  appbase.cpp
8&>  arcall.cpp
8&>  arcfind.cpp
8&>  archive.cpp
8&>  arrstr.cpp
8&>  base64.cpp
8&>  clntdata.cpp
8&>  cmdline.cpp
8&>  config.cpp
8&>  convauto.cpp
8&>  datetime.cpp
8&>  datetimefmt.cpp
8&>  datstrm.cpp
8&>  dircmn.cpp
8&>  dynarray.cpp
6&>  wx_vc12_wxjpeg.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxjpeg.lib
8&>  dynlib.cpp
8&>  dynload.cpp
9&>------ Started Generation: Project: wxscintilla, Configuration: Release Win32 ------
8&>  encconv.cpp
8&>  event.cpp
8&>  evtloopcmn.cpp
8&>  ffile.cpp
8&>  file.cpp
8&>  fileback.cpp
8&>  fileconf.cpp
8&>  filefn.cpp
8&>  filename.cpp
8&>  filesys.cpp
4&>  wx_vc12_wxpng.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxpng.lib
9&>  Accessor.cxx
9&>  AutoComplete.cxx
9&>  CallTip.cxx
9&>  Catalogue.cxx
8&>  filtall.cpp
8&>  filtfind.cpp
8&>  fmapbase.cpp
9&>  CellBuffer.cxx
9&>  CharClassify.cxx
9&>  CharacterSet.cxx
9&>  ContractionState.cxx
9&>  Decoration.cxx
8&>  fs_arc.cpp
8&>  fs_filter.cpp
9&>  Document.cxx
9&>  Editor.cxx
8&>  fs_mem.cpp
8&>  fswatchercmn.cpp
8&>  hash.cpp
8&>  hashmap.cpp
8&>  init.cpp
8&>  intl.cpp
8&>  ipcbase.cpp
7&>  wx_vc12_wxtiff.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxtiff.lib
8&>  languageinfo.cpp
8&>  list.cpp
8&>  log.cpp
8&>  longlong.cpp
9&>  ExternalLexer.cxx
8&>  memory.cpp
8&>  mimecmn.cpp
8&>  module.cpp
8&>  msgout.cpp
8&>  mstream.cpp
8&>  numformatter.cpp
8&>  object.cpp
8&>  platinfo.cpp
8&>  powercmn.cpp
8&>  process.cpp
8&>  regex.cpp
8&>  sstream.cpp
8&>  stdpbase.cpp
8&>  stdstream.cpp
8&>  stopwatch.cpp
8&>  strconv.cpp
8&>  stream.cpp
8&>  string.cpp
8&>  stringimpl.cpp
9&>  Indicator.cxx
8&>  stringops.cpp
8&>  strvararg.cpp
8&>..\..\src\common\strconv.cpp(2830): warning C4996: 'GetVersionExW': was declared as vetoed (... \... \src\common\strconv.cpp)
8&> C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(442) : see the declaration of "GetVersionExW"
9&>  KeyMap.cxx
8&>  sysopt.cpp
9&>  LexA68k.cxx
8&>  tarstrm.cpp
8&>  textbuf.cpp
8&>  textfile.cpp
8&>  threadinfo.cpp
8&>  time.cpp
9&>  LexAPDL.cxx
8&>  timercmn.cpp
8&>  timerimpl.cpp
9&>  LexASY.cxx
8&>  tokenzr.cpp
8&>  translation.cpp
8&>  txtstrm.cpp
8&>  unichar.cpp
8&>  uri.cpp
9&>  LexAU3.cxx
8&>  ustring.cpp
9&>  LexAVE.cxx
8&>  utilscmn.cpp
8&>  variant.cpp
9&>  LexAVS.cxx
9&>  LexAbaqus.cxx
8&>  wfstream.cpp
9&>  LexAda.cxx
8&>  wxcrt.cpp
8&>  wxprintf.cpp
8&>  xlocale.cpp
9&>  LexAsm.cxx
9&>  LexAsn1.cxx
8&>  xti.cpp
8&>  xtistrm.cpp
8&>  zipstrm.cpp
8&>  zstream.cpp
9&>  LexBaan.cxx
8&>  basemsw.cpp
8&>  crashrpt.cpp
9&>  LexBash.cxx
9&>  LexBasic.cxx
8&>  dde.cpp
8&>  debughlp.cpp
8&>  dir.cpp
9&>  LexBullant.cxx
8&>  dlmsw.cpp
8&>  evtloopconsole.cpp
9&>  LexCLW.cxx
8&>  fswatcher.cpp
8&>  main.cpp
9&>  LexCOBOL.cxx
8&>  mimetype.cpp
8&>  mslu.cpp
8&>  power.cpp
8&>  regconf.cpp
9&>  LexCPP.cxx
8&>  registry.cpp
8&>  snglinst.cpp
8&>  stackwalk.cpp
9&>  LexCSS.cxx
8&>  stdpaths.cpp
8&>  thread.cpp
9&>  LexCaml.cxx
8&>  timer.cpp
8&>  utils.cpp
8&>  utilsexc.cpp
9&>  LexCmake.cxx
9&>  LexCoffeeScript.cxx
9&>  LexConf.cxx
8&>  volume.cpp
8&>  fswatcherg.cpp
9&>  LexCrontab.cxx
9&>  LexCsound.cxx
9&>  LexD.cxx
9&>  LexECL.cxx
9&>  LexEScript.cxx
9&>  LexEiffel.cxx
9&>  LexErlang.cxx
9&>..\..\src\stc\scintilla\lexers\LexErlang.cxx : warning C4819: This file contains characters that cannot be represented in the current code page (936). Please save this file in Unicode format to prevent data loss (..\..\src\stc\scintilla\lexers\LexErlang.cxx)
8&>  extended.c
9&>  LexFlagship.cxx
9&>  LexForth.cxx
9&>  LexFortran.cxx
9&>  LexGAP.cxx
9&>  LexGui4Cli.cxx
9&>  LexHTML.cxx
9&>  LexHaskell.cxx
9&>  LexInno.cxx
9&>  LexKix.cxx
9&>  LexLisp.cxx
9&>  LexLout.cxx
9&>  LexLua.cxx
9&>  LexMMIXAL.cxx
9&>  LexMPT.cxx
9&>  LexMSSQL.cxx
9&>  LexMagik.cxx
8&>  wx_vc12_base.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxbase30u.lib
10&>------ Started generation: Project: core, Configuration: Release Win32 ------
11&> ------ Started generation: Project: xml, Configuration: Release Win32 ------
9&> LexMarkdown.cxx
12&> ------ Started generated: Project: net, config: Release Win32 ------
11&>  dummy.cpp
12&>  dummy.cpp
9&>  LexMatlab.cxx
9&>..\..\src\stc\scintilla\lexers\LexMatlab.cxx : warning C4819: This file contains characters that cannot be represented in the current code page (936). Please save this file in Unicode format to prevent data loss (..\..\src\stc\scintilla\lexers\LexMatlab.cxx)
10&>  dummy.cpp
9&>  LexMetapost.cxx
9&>  LexModula.cxx
9&>  LexMySQL.cxx
9&>  LexNimrod.cxx
9&>  LexNsis.cxx
9&>  LexOScript.cxx
9&>  LexOpal.cxx
9&>  LexOthers.cxx
9&>  LexPB.cxx
9&>  LexPLM.cxx
9&>  LexPOV.cxx
9&>  LexPS.cxx
9&>  LexPascal.cxx
9&>  LexPerl.cxx
9&>  LexPowerPro.cxx
9&>  LexPowerShell.cxx
9&>  LexProgress.cxx
9&>  LexPython.cxx
9&>  LexR.cxx
9&>  LexRebol.cxx
9&>  LexRuby.cxx
9&>  LexSML.cxx
9&>  LexSQL.cxx
9&>  LexScriptol.cxx
9&>  LexSmalltalk.cxx
9&>  LexSorcus.cxx
9&>  LexSpecman.cxx
9&>  LexSpice.cxx
9&>  LexTACL.cxx
9&>  LexTADS3.cxx
9&>  LexTAL.cxx
9&>  LexTCL.cxx
9&>  LexTCMD.cxx
9&>  LexTeX.cxx
9&>  LexTxt2tags.cxx
9&>  LexVB.cxx
9&>  LexVHDL.cxx
9&>  LexVerilog.cxx
9&>  LexVisualProlog.cxx
11&>  xtixml.cpp
11&>  xml.cpp
9&>  LexYAML.cxx
12&>  fs_inet.cpp
9&>  LexerBase.cxx
12&>  ftp.cpp
12&>  http.cpp
12&>  protocol.cpp
9&>  LexerModule.cxx
9&>  LexerNoExceptions.cxx
9&>  LexerSimple.cxx
12&>  sckaddr.cpp
9&>  LineMarker.cxx
12&>  sckfile.cpp
12&>  sckipc.cpp
12&>  sckstrm.cpp
9&>  PerLine.cxx
12&>  socket.cpp
12&>  url.cpp
12&>  sockmsw.cpp
10&>  accelcmn.cpp
10&>  accesscmn.cpp
10&>  affinematrix2d.cpp
10&>  anidecod.cpp
9&>  PositionCache.cxx
10&>  appcmn.cpp
12&>  urlmsw.cpp
10&>  artprov.cpp
11&>  wx_vc12_xml.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxbase30u_xml.lib
10&>  artstd.cpp
10&>  arttango.cpp
9&>  PropSetSimple.cxx
9&>  RESearch.cxx
10&>  bmpbase.cpp
10&>  bmpbtncmn.cpp
9&>  RunStyles.cxx
12&>  wx_vc12_net.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxbase30u_net.lib
9&>  ScintillaBase.cxx
10&>  bookctrl.cpp
10&>  btncmn.cpp
10&>  cairo.cpp
10&>  checkboxcmn.cpp
10&>  checklstcmn.cpp
10&>  choiccmn.cpp
9&>  Selection.cxx
10&>  clipcmn.cpp
10&>  clrpickercmn.cpp
10&>  cmdproc.cpp
10&>..\..\src\common\cmdproc.cpp(336): warning C4800: “wxObjectList::Node”: Force the value to boolean "true" or "false" (performance warning) (..\..\src\common\cmdproc.cpp)
10&>  cmndata.cpp
10&>  colourcmn.cpp
10&>  colourdata.cpp
10&>  combocmn.cpp
10&>  containr.cpp
10&>  cshelp.cpp
10&>  ctrlcmn.cpp
10&>  ctrlsub.cpp
10&>  dcbase.cpp
9&>  Style.cxx
10&>  dcbufcmn.cpp
10&>  dcgraph.cpp
10&>  dcsvg.cpp
9&>  StyleContext.cxx
10&>  dirctrlcmn.cpp
9&>  UniConversion.cxx
10&>  dlgcmn.cpp
9&>  ViewStyle.cxx
9&>  WordList.cxx
9&>  XPM.cxx
10&>  dndcmn.cpp
10&>  dobjcmn.cpp
10&>  docmdi.cpp
10&>  docview.cpp
10&>  dpycmn.cpp
10&>  dseldlg.cpp
10&>  effects.cpp
10&>  event.cpp
10&>  fddlgcmn.cpp
10&>  filectrlcmn.cpp
10&>  filehistorycmn.cpp
10&>  filepickercmn.cpp
10&>  fldlgcmn.cpp
10&>  fontcmn.cpp
9&>  wx_vc12_wxscintilla.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxscintilla.lib
10&>  fontdata.cpp
10&>  fontenumcmn.cpp
10&>  fontmap.cpp
10&>  fontpickercmn.cpp
10&>  fontutilcmn.cpp
10&>  framecmn.cpp
10&>  fs_mem.cpp
10&>  gaugecmn.cpp
10&>  gbsizer.cpp
10&>  gdicmn.cpp
10&>  geometry.cpp
10&>  gifdecod.cpp
10&>  graphcmn.cpp
10&>  headercolcmn.cpp
10&>  headerctrlcmn.cpp
10&>  helpbase.cpp
10&>  iconbndl.cpp
10&>  imagall.cpp
10&>  imagbmp.cpp
10&>  image.cpp
10&>  imagfill.cpp
10&>  imaggif.cpp
10&>  imagiff.cpp
10&>  imagjpeg.cpp
10&>  imagpcx.cpp
10&>  imagpng.cpp
10&>  imagpnm.cpp
10&>  imagtga.cpp
10&>  imagtiff.cpp
10&>  imagxpm.cpp
10&>  layout.cpp
10&>  lboxcmn.cpp
10&>  listctrlcmn.cpp
10&>  markupparser.cpp
10&>  matrix.cpp
10&>  menucmn.cpp
10&>  modalhook.cpp
10&>  mousemanager.cpp
10&>  msgout.cpp
10&>  nbkbase.cpp
10&>  overlaycmn.cpp
10&>  ownerdrwcmn.cpp
10&>  panelcmn.cpp
10&>  paper.cpp
10&>  persist.cpp
10&>  pickerbase.cpp
10&>  popupcmn.cpp
10&>  preferencescmn.cpp
10&>  prntbase.cpp
10&>  quantize.cpp
10&>  radiobtncmn.cpp
10&>  radiocmn.cpp
10&>  rearrangectrl.cpp
10&>  rendcmn.cpp
10&>  rgncmn.cpp
10&>  scrolbarcmn.cpp
10&>  settcmn.cpp
10&>  sizer.cpp
10&>  slidercmn.cpp
10&>  spinbtncmn.cpp
10&>  spinctrlcmn.cpp
10&>  srchcmn.cpp
10&>  statbar.cpp
10&>  statbmpcmn.cpp
10&>  statboxcmn.cpp
10&>  statlinecmn.cpp
10&>  stattextcmn.cpp
10&>  stockitem.cpp
10&>  tbarbase.cpp
10&>  textcmn.cpp
10&>  textentrycmn.cpp
10&>  textmeasurecmn.cpp
10&>  toplvcmn.cpp
10&>  treebase.cpp
10&>  uiactioncmn.cpp
10&>  utilscmn.cpp
10&>  valgen.cpp
10&>  validate.cpp
10&>  valnum.cpp
10&>  valtext.cpp
10&>  wincmn.cpp
10&>  windowid.cpp
10&>  wrapsizer.cpp
10&>  xpmdecod.cpp
10&>  preferencesg.cpp
10&>  access.cpp
10&>  activex.cpp
10&>  anybutton.cpp
10&>  app.cpp
10&>  artmsw.cpp
10&>  automtn.cpp
10&>..\..\src\msw\app.cpp(271): warning C4996: 'GetVersionExW': was declared as vetoed (... \... \src\msw\app.cpp)
10&> C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(442) : see the declaration of "GetVersionExW"
10&>  bitmap.cpp
10&>  brush.cpp
10&>  caret.cpp
10&>  clipbrd.cpp
10&>  colordlg.cpp
10&>  colour.cpp
10&>  combo.cpp
10&>  cursor.cpp
10&>  data.cpp
10&>  dataobj.cpp
10&>  dc.cpp
10&>  dcclient.cpp
10&>  dcmemory.cpp
10&>  dcprint.cpp
10&>  dcscreen.cpp
10&>  dialup.cpp
10&>  dib.cpp
10&>  dirdlg.cpp
10&>  display.cpp
10&>  dragimag.cpp
10&>  dropsrc.cpp
10&>  droptgt.cpp
10&>  enhmeta.cpp
10&>  evtloop.cpp
10&>  filedlg.cpp
10&>  font.cpp
10&>  fontdlg.cpp
10&>  fontenum.cpp
10&>  fontutil.cpp
10&>  frame.cpp
10&>  gdiimage.cpp
10&>  gdiobj.cpp
10&>  gdiplus.cpp
10&>  graphics.cpp
10&>  headerctrl.cpp
10&>  helpchm.cpp
10&>  helpwin.cpp
10&>  icon.cpp
10&>  imaglist.cpp
10&>  iniconf.cpp
10&>  main.cpp
10&>  mdi.cpp
10&>  menuitem.cpp
10&>  metafile.cpp
10&>  minifram.cpp
10&>  msgdlg.cpp
10&>  mslu.cpp
10&>  nativdlg.cpp
10&>  nativewin.cpp
10&>  nonownedwnd.cpp
10&>  oleutils.cpp
10&>  safearray.cpp
10&>  ownerdrw.cpp
10&>  palette.cpp
10&>  panel.cpp
10&>  pen.cpp
10&>  popupwin.cpp
10&>  printdlg.cpp
10&>  printwin.cpp
10&>  progdlg.cpp
10&>  region.cpp
10&>  renderer.cpp
10&>  richmsgdlg.cpp
10&>  settings.cpp
10&>  spinctrl.cpp
10&>  statusbar.cpp
10&>  textentry.cpp
10&>  tooltip.cpp
10&>  toplevel.cpp
10&>  treectrl.cpp
10&>  uiaction.cpp
10&>  utilsgui.cpp
10&>  utilswin.cpp
10&>  uuid.cpp
10&>  uxtheme.cpp
10&>  volume.cpp
10&>  window.cpp
10&>  busyinfo.cpp
10&>  buttonbar.cpp
10&>  choicbkg.cpp
10&>  choicdgg.cpp
10&>  clrpickerg.cpp
10&>  collpaneg.cpp
10&>  combog.cpp
10&>  dcpsg.cpp
10&>  dirctrlg.cpp
10&>  dragimgg.cpp
10&>  filectrlg.cpp
10&>  filepickerg.cpp
10&>  fontpickerg.cpp
10&>  graphicc.cpp
10&>  headerctrlg.cpp
10&>  infobar.cpp
10&>  listbkg.cpp
10&>  logg.cpp
10&>  markuptext.cpp
10&>  msgdlgg.cpp
10&>  numdlgg.cpp
10&>  printps.cpp
10&>  prntdlgg.cpp
10&>  progdlgg.cpp
10&>  renderg.cpp
10&>  richmsgdlgg.cpp
10&>  scrlwing.cpp
10&>  selstore.cpp
10&>  spinctlg.cpp
10&>  splitter.cpp
10&>  srchctlg.cpp
10&>  statbmpg.cpp
10&>  stattextg.cpp
10&>  textdlgg.cpp
10&>  tipwin.cpp
10&>  toolbkg.cpp
10&>  treebkg.cpp
10&>  treectlg.cpp
10&>  vlbox.cpp
10&>  vscroll.cpp
10&>  xmlreshandler.cpp
10&>  accel.cpp
10&>  bmpbuttn.cpp
10&>  button.cpp
10&>  checkbox.cpp
10&>  checklst.cpp
10&>  choice.cpp
10&>  combobox.cpp
10&>  control.cpp
10&>  dialog.cpp
10&>  fdrepdlg.cpp
10&>  gauge.cpp
10&>  listbox.cpp
10&>  listctrl.cpp
10&>  menu.cpp
10&>  notebook.cpp
10&>  radiobox.cpp
10&>  radiobut.cpp
10&>  scrolbar.cpp
10&>  slider.cpp
10&>  spinbutt.cpp
10&>  statbmp.cpp
10&>  statbox.cpp
10&>  statline.cpp
10&>  stattext.cpp
10&>  textctrl.cpp
10&>  textmeasure.cpp
10&>  tglbtn.cpp
10&>  toolbar.cpp
10&>  statusbr.cpp
10&>  wx_vc12_core.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\... \... \lib\vc_lib\wxmsw30u_core.lib
13&>------ Started generated: Project: adv, Configuration: Release Win32 ------
14&>------ Started generation: Project: html, Configuration: Release Win32 ------
15&>------ Started generation: Project: media, Configuration: Release Win32 ------
16&>------ Started generated: Project: webview, Configure: Release Win32 ------
16&>  dummy.cpp
13&>  dummy.cpp
15&>  dummy.cpp
14&>  dummy.cpp
15&>  mediactrlcmn.cpp
15&>  mediactrl_am.cpp
14&>  helpbest.cpp
15&>  mediactrl_qt.cpp
15&>  mediactrl_wmp10.cpp
14&>  htmllbox.cpp
14&>  helpctrl.cpp
14&>  helpdata.cpp
16&>  webview.cpp
16&>  webviewarchivehandler.cpp
16&>  webviewfshandler.cpp
16&>  webview_ie.cpp
13&>  animatecmn.cpp
13&>  bmpcboxcmn.cpp
13&>  calctrlcmn.cpp
13&>  datavcmn.cpp
13&>  gridcmn.cpp
13&>  hyperlnkcmn.cpp
15&>  wx_vc12_media.vcxproj -&> F:\Download\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_media.lib
13&>  odcombocmn.cpp
17&>------ Started Generation: Project: qa, Configuration: Release Win32 ------
13&>  richtooltipcmn.cpp
13&>  taskbarcmn.cpp
14&>  helpdlg.cpp
14&>  helpfrm.cpp
14&>  helpwnd.cpp
14&>  htmlcell.cpp
17&>  dummy.cpp
13&>  aboutdlg.cpp
13&>  bmpcbox.cpp
13&>  calctrl.cpp
13&>  commandlinkbutton.cpp
13&>  datecontrols.cpp
13&>  datectrl.cpp
13&>  datetimectrl.cpp
13&>  hyperlink.cpp
13&>  joystick.cpp
16&>  wx_vc12_webview.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_webview.lib
13&>  notifmsg.cpp
18&>------ Started Generation: Project: stc, Configuration: Release Win32 ------
13&>  richtooltip.cpp
13&>  sound.cpp
13&>  taskbar.cpp
17&>  debugrpt.cpp
17&>  dbgrptg.cpp
13&>  timectrl.cpp
13&>  aboutdlgg.cpp
13&>  animateg.cpp
13&>  bannerwindow.cpp
13&>  bmpcboxg.cpp
13&>  calctrlg.cpp
13&>  commandlinkbuttong.cpp
13&>  datavgen.cpp
13&>  datectlg.cpp
13&>  editlbox.cpp
17&>  wx_vc12_qa.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_qa.lib
19&>------ Started Generation: Project: gl, Configuration:  Release Win32 ------
13&>  grid.cpp
19&>  dummy.cpp
13&>  gridctrl.cpp
13&>  grideditors.cpp
18&>  dummy.cpp
14&>  htmlfilt.cpp
14&>  htmlpars.cpp
14&>  htmltag.cpp
14&>  htmlwin.cpp
14&>  htmprint.cpp
14&>  m_dflist.cpp
18&>  PlatWX.cpp
18&>  ScintillaWX.cpp
18&>  stc.cpp
14&>  m_fonts.cpp
13&>  gridsel.cpp
13&>  helpext.cpp
19&>  glcmn.cpp
19&>  glcanvas.cpp
14&>  m_hline.cpp
13&>  hyperlinkg.cpp
19&>  wx_vc12_gl.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_gl.lib
14&>  m_image.cpp
13&>  laywin.cpp
13&>  notifmsgg.cpp
13&>  odcombo.cpp
14&>  m_layout.cpp
14&>  m_links.cpp
13&>  propdlg.cpp
13&>  richtooltipg.cpp
13&>  sashwin.cpp
14&>  m_list.cpp
13&>  splash.cpp
13&>  timectrlg.cpp
18&>  wx_vc12_stc.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_stc.lib
13&>  tipdlg.cpp
14&>  m_pre.cpp
13&>  treelist.cpp
14&>  m_span.cpp
13&>  wizard.cpp
14&>  m_style.cpp
14&>  m_tables.cpp
14&>  styleparams.cpp
14&>  winpars.cpp
13&>  wx_vc12_adv.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_adv.lib
14&>  wx_vc12_html.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_html.lib
20&>------ Started generation: Project: xrc, Configuration: Release Win32 ------
21&>------ Started generation: Project: ribbon, Configuration: Release Win32 ------
22&>------ Started generated: Project: propgrid, config: Release Win32 ------
21&>  dummy.cpp
20&>  dummy.cpp
22&>  dummy.cpp
23&>------ Started Generation: Project: aui, Configuration: Release Win32 ------
23&>  dummy.cpp
21&>  art_aui.cpp
21&>  art_internal.cpp
21&>  art_msw.cpp
21&>  bar.cpp
21&>  buttonbar.cpp
20&>  xh_animatctrl.cpp
20&>  xh_bannerwindow.cpp
20&>  xh_bmp.cpp
20&>  xh_bmpbt.cpp
22&>  advprops.cpp
22&>  editors.cpp
22&>  manager.cpp
22&>  property.cpp
21&>  control.cpp
21&>  gallery.cpp
21&>  page.cpp
20&>  xh_bmpcbox.cpp
20&>  xh_bttn.cpp
23&>  auibar.cpp
23&>  auibook.cpp
23&>  dockart.cpp
23&>  floatpane.cpp
21&>  panel.cpp
21&>  toolbar.cpp
20&>  xh_cald.cpp
20&>  xh_chckb.cpp
21&>  xh_ribbon.cpp
20&>  xh_chckl.cpp
23&>  framemanager.cpp
20&>  xh_choic.cpp
23&>  tabart.cpp
20&>  xh_choicbk.cpp
23&>  tabmdi.cpp
20&>  xh_clrpicker.cpp
23&>  xh_auinotbk.cpp
20&>  xh_cmdlinkbn.cpp
20&>  xh_collpane.cpp
22&>  propgrid.cpp
22&>  propgridiface.cpp
21&>  wx_vc12_ribbon.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_ribbon.lib
24&>------ Started Generation: Project: richtext, Configuration: Release Win32 ------
22&>  propgridpagestate.cpp
20&>  xh_combo.cpp
20&>  xh_comboctrl.cpp
24&>  dummy.cpp
20&>  xh_datectrl.cpp
20&>  xh_dirpicker.cpp
22&>  props.cpp
23&>  wx_vc12_aui.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_aui.lib
20&>  xh_dlg.cpp
20&>  xh_editlbox.cpp
20&>  xh_filectrl.cpp
20&>  xh_filepicker.cpp
20&>  xh_fontpicker.cpp
20&>  xh_frame.cpp
24&>  richtextbuffer.cpp
24&>  richtextctrl.cpp
24&>  richtextformatdlg.cpp
24&>  richtexthtml.cpp
20&>  xh_gauge.cpp
20&>  xh_gdctl.cpp
20&>  xh_grid.cpp
20&>  xh_html.cpp
20&>  xh_htmllbox.cpp
20&>  xh_hyperlink.cpp
22&>  wx_vc12_propgrid.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_propgrid.lib
20&>  xh_listb.cpp
20&>  xh_listbk.cpp
20&>  xh_listc.cpp
20&>  xh_mdi.cpp
20&>  xh_menu.cpp
20&>  xh_notbk.cpp
20&>  xh_odcombo.cpp
20&>  xh_panel.cpp
24&>  richtextimagedlg.cpp
20&>  xh_propdlg.cpp
20&>  xh_radbt.cpp
20&>  xh_radbx.cpp
20&>  xh_scrol.cpp
24&>  richtextprint.cpp
20&>  xh_scwin.cpp
20&>  xh_simplebook.cpp
20&>  xh_sizer.cpp
24&>  richtextstyledlg.cpp
20&>  xh_slidr.cpp
20&>  xh_spin.cpp
20&>  xh_split.cpp
20&>  xh_srchctrl.cpp
20&>  xh_statbar.cpp
20&>  xh_stbmp.cpp
20&>  xh_stbox.cpp
24&>  richtextstyles.cpp
24&>  richtextsymboldlg.cpp
20&>  xh_stlin.cpp
20&>  xh_sttxt.cpp
24&>  richtextxml.cpp
20&>  xh_text.cpp
20&>  xh_tglbtn.cpp
20&>  xh_timectrl.cpp
20&>  xh_toolb.cpp
20&>  xh_toolbk.cpp
20&>  xh_tree.cpp
20&>  xh_treebk.cpp
20&>  xh_unkwn.cpp
20&>  xh_wizrd.cpp
20&>  xmladv.cpp
20&>  xmlres.cpp
24&>  xh_richtext.cpp
20&>  xmlrsall.cpp
20&>  wx_vc12_xrc.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_xrc.lib
24&>  wx_vc12_richtext.vcxproj -&> F:\迅雷下载\wxWidgets-3.0.2\build\msw\..\..\lib\vc_lib\wxmsw30u_richtext.lib
========== Generated: 24 successful, 0 failed, 0 latest, 0 skipped ==========

 

24456;- 23601;- 21151;- 37324;- 36824;- 32622;- 23545;- wx24211;- 25345; 35753;- 234272nd;

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>Andthen there’s the second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second second 25509;` 22120;> C:\wxWidgets-3.0.0\lib\vc lib
3″20381;” 36182b;”32622;-&>38142;” “25509;” “221200-&>367551> Release
wxbase30u.lib
What are you talking about?net.lib
wxbase30u xml.lib
wxexpat.lib
wxjpeg.lib
wxmsw30u adv.lib
wxmsw30u Hey.lib
wxmsw30u core.lib
wxmsw30u gl.lib
wxmsw30u html.lib
wxmsw30u media.lib
wxmsw30u propgrid.lib
wxmsw30u qa.lib
wxmsw30u Fish.lib
wxmsw30u Richtext.lib
wxmsw30u stc.lib
wxmsw30u xrc.lib
wxpng.lib
wxregex.lib
wxscintilla.lib
wxtiff.lib
wxzlib.lib
comctl32.lib
rpcrt4.lib
36755Helloworld31243;- 242073; main.cpp

// wxWidgets "Hello world" Program  
// For compilers that support precompilation, includes "wx/wx.h".  
#include <wx/wxprec.h&>
#include <wx/wx.h&>
class MyApp : public wxApp
{
public:
	virtual bool OnInit();
};
class MyFrame : public wxFrame
{
public:
	MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
private:
	void OnHello(wxCommandEvent& event);
	void OnExit(wxCommandEvent& event);
	void OnAbout(wxCommandEvent& event);
	wxDECLARE_EVENT_TABLE();
};
enum
{
	ID_Hello = 1
};
wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(ID_Hello, MyFrame::OnHello)
EVT_MENU(wxID_EXIT, MyFrame::OnExit)
EVT_MENU(wxID_ABOUT, MyFrame::OnAbout)
wxEND_EVENT_TABLE()
wxIMPLEMENT_APP(MyApp);
bool MyApp::OnInit()
{
	MyFrame *frame = new MyFrame("Hello World", wxPoint(50, 50), wxSize(450, 340));
	frame-&>Show(true);
	return true;
}
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
: wxFrame(NULL, wxID_ANY, title, pos, size)
{
	wxMenu *menuFile = new wxMenu;
	menuFile-&>Append(ID_Hello, "&Hello...\tCtrl-H",
		"Help string shown in status bar for this menu item");
	menuFile-&>AppendSeparator();
	menuFile-&>Append(wxID_EXIT);
	wxMenu *menuHelp = new wxMenu;
	menuHelp-&>Append(wxID_ABOUT);
	wxMenuBar *menuBar = new wxMenuBar;
	menuBar-&>Append(menuFile, "&File");
	menuBar-&>Append(menuHelp, "&Help");
	SetMenuBar(menuBar);
	CreateStatusBar();
	SetStatusText("你好!Welcome to wxWidgets!");
}
void MyFrame::OnExit(wxCommandEvent& event)
{
	Close(true);
}
void MyFrame::OnAbout(wxCommandEvent& event)
{
	wxMessageBox("This is a wxWidgets' Hello world sample",
		"About Hello World", wxOK | wxICON_INFORMATION);
}
void MyFrame::OnHello(wxCommandEvent& event)
{
	wxLogMessage("Hello world from wxWidgets!");
}

If the following error is reported, you need to modify platform. H


wxWidgets-3.0.2\include\wx\platform.h

Set “include” Wx/MSW/setup. H “in line 183, and add MSW, because the platform is MSW~

Compile run:

Read the full text

This article is reproduced from: http://blog.csdn.net/u012997311/article/details/51433378

Report

 

Reward

 

0 like

 

0 collection

 

wechat

QQ

microblog

share

Other popular articles by the author

C + + QT multi thread tcpsocket server instance

Save the modified docker container

C + + — QT uses HTTP protocol

QT socket data communication example.

Similar Posts: