[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] Building lmi with pre-wx-2.9.5 snapshot
From: |
Greg Chicares |
Subject: |
[lmi] Building lmi with pre-wx-2.9.5 snapshot |
Date: |
Thu, 11 Jul 2013 14:06:57 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
I'm trying to build lmi with today's wx snapshot:
ftp://ftp.wxwidgets.org/pub/Daily_HEAD/files/wxWidgets-2013-07-11.tar.gz
It fails on several files, as follows [command line wrapped manually]:
/MinGW_/bin/g++ -MMD -MP -MT file_command_wx.o -MF file_command_wx.d
-c -I /lmi/src/lmi -I /lmi/src/lmi/tools/pete-2.1.1
-I /opt/lmi/local/lib/wx/include/i686-pc-mingw32-msw-unicode-2.9
-I /opt/lmi/local/include/wx-2.9 -I /opt/lmi/third_party/include
-I /opt/lmi/third_party/src -I /opt/lmi/local/include
-I /opt/lmi/local/include/libxml2
-DLMI_WX_NEW_USE_SO -DLIBXML_USE_DLL -DSTRICT
-D_LARGEFILE_SOURCE=unknown
-DWXUSINGDLL -D__WXMSW__ -DBOOST_STRICT_CONFIG
-std=gnu++98 -posix -pedantic-errors -Werror -Wall -Wcast-align
-Wconversion
-Wdeprecated-declarations -Wdisabled-optimization -Wimport -Wmultichar
-Wpacked
-Wpointer-arith -Wsign-compare -Wundef -Wwrite-strings -Wno-long-long
-Wctor-dtor-privacy -Wdeprecated -Wnon-template-friend -Woverloaded-virtual
-Wpmf-conversions -Wsynth -Wno-uninitialized
--param ggc-min-expand=25 --param ggc-min-heapsize=32768
-ggdb -O2 /lmi/src/lmi/file_command_wx.cpp -ofile_command_wx.o
In file included from /opt/lmi/local/include/wx-2.9/wx/version.h:17,
from /opt/lmi/local/include/wx-2.9/wx/defs.h:194,
from /opt/lmi/local/include/wx-2.9/wx/mimetype.h:20,
from /lmi/src/lmi/file_command_wx.cpp:37:
/opt/lmi/local/include/wx-2.9/wx/cpp.h:153:30: anonymous variadic macros were
introduced in C99
/opt/lmi/local/include/wx-2.9/wx/cpp.h:155:66: anonymous variadic macros were
introduced in C99
[...]
/opt/lmi/local/include/wx-2.9/wx/cpp.h:170:31: anonymous variadic macros were
introduced in C99
/lmi/src/lmi/workhorse.make:762: recipe for target `file_command_wx.o' failed
(1) Should I...
(1)(a) use some flag other than '-std=gnu++98' to compile lmi
source files that include wx headers? Oops--I'm still using
gcc-3.4.5, which supports no later standard, so '-std=c++0x'
and '-std=c++11' are unavailable:
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/C-Dialect-Options.html#C-Dialect-Options
(1)(b) attempt to disable this somehow in 'configure'? I'm
using '--disable-vararg_macros' already, but presumably
that's not the same thing; and my reading of 'wx/cpp.h'
suggests that any attempted use of wxCALL_FOR_EACH would
just produce an error if I were somehow able to turn off
wxHAS_VARIADIC_MACROS anyway.
(1)(c) use '-Wno-variadic-macros' to suppress the warning
(which is treated as an error because of '-Werror'), and
hope^H^H^H^Htest that the compiled code just works?
(2) Unrelated question: when building wx itself, using
../configure [...options...] && make && make install
can I add my own CXXFLAGS in configure's options-list?
In particular, I want to build wx with
--param ggc-min-expand=25 --param ggc-min-heapsize=32768
so that I can use sixteen cores on a 32-bit OS.
- [lmi] Building lmi with pre-wx-2.9.5 snapshot,
Greg Chicares <=
Re: [lmi] Building lmi with pre-wx-2.9.5 snapshot, Greg Chicares, 2013/07/11
Re: [lmi] Building lmi with pre-wx-2.9.5 snapshot, Greg Chicares, 2013/07/19