[Qt-interest] Qt 4.5.0 RC on Windows/g++
Peter Hackett
peter.hackett at icmanage.com
Mon Feb 9 19:55:57 CET 2009
For what it's worth:
I compile with virtually all g++ warnings on (48 of them) redirecting
the compile warnings to a file:
g++ -Wall -Wextra -Wcast-align -Wcast-qual -Wconversion \
-Wdeprecated-declarations -Wdisabled-optimization -Wfloat-equal \
-Winline -Wmissing-format-attribute \
-Wmultichar -W... -W... ...
-o Debug/IqtApplication.o IqtApplication.cpp \
> Debug/IqtApplication.o.c++out
I then rum a perl filter script I wrote to remove warnings in code
that I don't "own":
compileFilter -eFile ../g++suppression.re \
../icmqtapp/Debug/IqtApplication.o.c++out
Where I have perl regular expressions like this:
(?:^In file included from \S+?:\d+[,:]\n\
(?: from \S+?:\d+[,:]\n)*)?\
(?:^/\S*?/include/(?:boost|Qt[A-Z][a-z]+|p4api|oa)/\S*?: At global
scope:\n)?\
(?:^/\S*?/include/(?:boost|Qt[A-Z][a-z]+|p4api|oa)/\S*?:\d+:\
warning: base class '.+?' has a non-virtual destructor\n)+
in my ../g++suppression.re file. The regular expressions in this file
filter out all warnings that are caused by "foreign" code.
I do the same kind of thing for windows (using "msvsSuppresssion.re")
Yves Bailly wrote:
> Hello all,
>
> When compiling the last RC on Windows using g++, I receive thousands of
> warnings like the following one. Ok, it's just warnings, but they're
> quite annoying when building an application...
>
> In file included from ..\..\..\include/QtGui/qpainterpath.h:1,
> from
> ..\..\..\include/QtGui/../../src/gui/painting/qtransform.h:40,
> from ..\..\..\include/QtGui/qtransform.h:1,
> from ..\..\..\include/QtGui/../../src/gui/painting/qbrush.h:45,
> from ..\..\..\include/QtGui/qbrush.h:1,
> from ..\..\..\include/QtGui/../../src/gui/kernel/qpalette.h:42,
> from ..\..\..\include/QtGui/qpalette.h:1,
> from ..\..\..\include/QtGui/../../src/gui/kernel/qwidget.h:43,
> from ..\..\..\include/QtGui/qwidget.h:1,
> from ..\..\..\include/QtGui/../../src/gui/kernel/qaction.h:42,
> from ..\..\..\include/QtGui/qaction.h:1,
> from ..\..\..\include/QtGui/QAction:1,
> from ui_calculatorform.h:14,
> from calculatorform.h:41,
> from main.cpp:39:
> ..\..\..\include/QtGui/../../src/gui/painting/qpainterpath.h:228: warning:
> 'QDataStream& operator<<(QDataStream&, const
> QPainterPath&)' redeclared without dllimport attribute: previous dllimport ignored
> ..\..\..\include/QtGui/../../src/gui/painting/qpainterpath.h:229: warning:
> 'QDataStream& operator>>(QDataStream&, QPaint
> erPath&)' redeclared without dllimport attribute: previous dllimport ignored
>
> Some infos:
>
> E:\qt450>g++ --version
> g++ (4.3.2-tdm-2 mingw32) 4.3.2
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
> E:\qt450>mingw32-make --version
> GNU Make 3.81
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for i386-pc-mingw32
>
> E:\qt450>echo %QTDIR%
> E:\qt450
>
> E:\qt450>echo %QMAKESPEC%
> win32-g++
>
> E:\qt450>echo %PATH%
> E:\qt450\bin;E:\MinGW\bin;c:\windows;c:\windows\system32
>
> Regards,
>
>
More information about the Qt-interest-old
mailing list