[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] using -std=c++0x instead of -std=c++98?
From: |
Vaclav Slavik |
Subject: |
[lmi] using -std=c++0x instead of -std=c++98? |
Date: |
Wed, 17 Mar 2010 19:38:24 +0100 |
Hi,
gcc 4.4 with -pedantic-errors (but not without it) complains about wx
2.9 code when compiling LMI:
wx/log.h:975:1: error: invoking macro _WX_VARARG_DO_CALL_WCHAR
argument 1: empty macro arguments are undefined in ISO C90 and
ISO C++98
(and many more like that)
Apparently, it's an ambiguity in the standard that gcc now checks for:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33305
This is resolved in C++0x, so by far the simplest fix would be to use
-std=c++0x when compiling LMI. Is that acceptable, or do you prefer
"proper" fix in wx sources?
Thanks,
Vaclav
- [lmi] using -std=c++0x instead of -std=c++98?,
Vaclav Slavik <=