This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Anyone tried building Qt-2.3 with gcc3-prerelease?
- To: gcc at gcc dot gnu dot org
- Subject: Re: Anyone tried building Qt-2.3 with gcc3-prerelease?
- From: Gordon Sadler <gbsadler1 at lcisp dot com>
- Date: Fri, 15 Jun 2001 01:35:28 -0500
On Fri, Jun 15, 2001 at 01:55:49PM +0800, Richard Chan wrote:
> Before I plunge in...has anyone built qt-2.3 with gcc3-prerelease?
> Any gotchas or recommended settings? (I seem to recall problems
> with exception handling). I want to use the ISO C++ compatibility libstdc++-v3 stuff
> including the -fhonor-std flags.
>
Actually, just did this myself.
honor-std is default in gcc-3_0-branch IIRC.
Find qglobal.h. Look for #define Q_SPURIOUS_NON_VOID_WARNING
change
#if __GNUC__ == 2 && __GNUC_MINOR__ >= 95
to
#if __GNUC__ ==3 || __GNUC__ == 2 && __GNUC_MINOR__ >= 95
all else working just fine.
Of course, you first need to alter configs/$(your_file){static,shared}
so that it uses g++-3.0/gcc-3.0 if you don't have them as g++/gcc first
in your path.
--
Gordon Sadler