Opened 7 years ago

Closed 7 years ago

#16981 closed defect (outdated)

build with TDM-GCC doesn't work because of ISO C++

Reported by: MoonKid Owned by:
Priority: high Milestone:
Component: build Version: dev-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no


I checkout wx from git on Windows 7 (32bit) and tried to build it with the TDM-GCC like the /docs/msw/install.txt described.

But I got this error.

g++ -c -o gcc_mswudll\basedll_dummy.o -O2 -mthreads -DHAVE_W32API_H -DWXMSW_
_ -DNDEBUG -D_UNICODE -I..\..\lib\gcc_dll\mswu -I..\..\include -W -Wall -
DWXBUILDING -I..\..\src\tiff\libtiff -I..\..\src\jpeg -I..\..\src\png -I..\..\sr
c\zlib -I..\..\src\regex -I..\..\src\expat\lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE
-DwxUSE_BASE=1 -Wno-ctor-dtor-privacy -MTgcc_mswudll\basedll_dummy.o -MFgcc_
mswudll\basedll_dummy.o.d -MD -MP ../../src/common/dummy.cpp
windres --use-temp-file -i../../src/msw/version.rc -ogcc_mswudll\basedll_version
_rc.o --define
WXMSW --define NDEBUG --define _UNICODE --include-di
r ..\..\lib\gcc_dll\mswu --include-dir ../../include --define WXBUILDING --defi
ne WXDLLNAME=wxbase30u_gcc_custom --include-dir ../../src/tiff/libtiff --includ
e-dir ../../src/jpeg --include-dir ../../src/png --include-dir ../../src/zlib --
include-dir ../../src/regex --include-dir ../../src/expat/lib --define wxUSE_GUI
=0 --define WXMAKINGDLL_BASE --define wxUSE_BASE=1
g++ -c -o gcc_mswudll\basedll_any.o -O2 -mthreads -DHAVE_W32API_H -D

-DNDEBUG -D_UNICODE -I..\..\lib\gcc_dll\mswu -I..\..\include -W -Wall -DW

XBUILDING -I..\..\src\tiff\libtiff -I..\..\src\jpeg -I..\..\src\png -I..\..\src\
zlib -I..\..\src\regex -I..\..\src\expat\lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -D
wxUSE_BASE=1 -Wno-ctor-dtor-privacy -MTgcc_mswudll\basedll_any.o -MFgcc_mswu
dll\basedll_any.o.d -MD -MP ../../src/common/any.cpp
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/type_trait

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:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/c++0x_warning.h:32:2: error
: #error This file requires compiler and library support for the ISO C++ 2011 st
andard. This support is currently experimental, and must be enabled with the -st
d=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 no
t 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 s

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:11370: recipe for target 'gcc_mswudll\basedll_any.o' failed
mingw32-make: * [gcc_mswudll\basedll_any.o] Error 1

Change History (1)

comment:1 Changed 7 years ago by vadz

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

This should have been fixed by 4f846f72de795b86d8de0990dc3c340d30722a0e, are you sure you have this revision in your version?

Notice that it hasn't been backported to 3.0 (yet).

Note: See TracTickets for help on using tickets.