[Freewx-maint] Bug#721184: Problem with compiling defs.h with GCC 4.8
tonda.misek at post.cz
tonda.misek at post.cz
Thu Aug 29 17:05:59 UTC 2013
Hmm, I see also the _MSC_FULL_VER,..
Minimal sample producing the error is file (I used name test.cpp) with only
one line:
#include <wx/string.h>
Then use:
g++-4.8 -c `wx-config --cxxflags` -std=c++0x test.cpp
And the warning message is:
In file included from /usr/include/wx-2.8/wx/string.h:25:0,
from test.cpp:1:
/usr/include/wx-2.8/wx/defs.h:2887:5: warning: invalid suffix on literal; C+
+11 requires a space between literal and identifier [-Wliteral-suffix]
"/manifestdependency:\"type='win32' \
^
Thank you for fast response.
TonyMi
P.S. Sorry for my stupid web mailer...
---------- Původní zpráva ----------
Od: Olly Betts <olly at survex.com>
Datum: 29. 8. 2013
Předmět: Re: Bug#721184: Problem with compiling defs.h with GCC 4.8
"tags 721184 +moreinfo
thanks
On Wed, Aug 28, 2013 at 09:29:38PM +0200, tonda.misek at post.cz wrote:
> The g++-4.8 is more strict, please change line 2890 in file wx/defs.h
> from:<br> processorArchitecture='"cpu"' \<br>to:<br>
> processorArchitecture='" cpu "' \<br>ie. spaces around the
> cpu.
This part of the header is only processed if _MSC_FULL_VER is defined,
which shouldn't be the case when using GCC.
Please explain why you think this change is needed. If you're getting a
compiler error or warning, please copy and paste the exact message.
Cheers,
Olly"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/freewx-maint/attachments/20130829/d908a6ce/attachment.html>
More information about the Freewx-maint
mailing list