Still got problems compiling....

Ralf Habacker kde-cygwin@mail.kde.org
Fri, 15 Nov 2002 07:52:57 +0100


> Got past the TRAP problem in configure, but I'm still getting
> compiler errors.
>
Do you have been asked for the license aggreement and have gotten some lines
with printing the configuration and making the Makefiles and so one ? If not
your configure process does not work.


> g++ -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32
> -Igenerators/mac -I../include -I/home/Administrator/projects/qt-3/include
> -I../src/tools -DQT_NO_TEXTCODEC -DQT_NO_COMPONENT -DQT_NO_STL
> -I/home/Administrator/projects/qt-3/mkspecs/cygwin-g++ project.cpp
> In file included from ../include/qmap.h:44,
>                  from project.h:42,
>                  from project.cpp:38:
> ../include/qpair.h:62: syntax error before `bool'
> ../include/qpair.h:62: `T1' was not declared in this scope
> ../include/qpair.h:62: `T2' was not declared in this scope
>
> It's like g++ doesn't support templates. The offending code:
>
> 61:template <class T1, class T2>
> 2:Q_INLINE_TEMPLATES bool operator==( const QPair<T1, T2>& x, const QPair<T1,
> T2>& y )
> 63: {
> 64:    return x.first == y.first && x.second == y.second;
> 65:}
>
> $ gcc --version
> gcc (GCC) 3.2 20020927 (prerelease)
> Copyright (C) 2002 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.
>
> Got stuff in /usr/include/c++/3.2, which is where I believe the
> libstdc++-devel files should live.
>

Recent qt release are only currently compiled with gcc 2.95x. Porting to gcc 3.2
is an outstanding issue, so there are two possibilities:

1. Compile with gcc 2.95.2
2. Try gcc 3.2 and figure out how to setup the build system. This is an
important step for kde 3.x because gcc 3 uses a different application binary
interface as gcc 2. and

Regards
Ralf