[galib] GALib doesn't compile with GCC-4.0

Douglas A. Augusto douglas.augusto at pop.com.br
Mon Jun 27 22:19:23 EDT 2005


Hi,

I'm trying to compile GALib 2.4.6 under GCC-4.0 without success. I get many
warnings (about headers¹) and an fatal error:

../ga/GAAllele.h:147: error: declaration of 'operator==' as non-function
../ga/GAAllele.h:147: error: expected ';' before '<' token
../ga/GAAllele.h:148: error: declaration of 'operator!=' as non-function
../ga/GAAllele.h:148: error: expected ';' before '<' token
make[1]: *** [GAAllele.o] Error 1
make[1]: Leaving directory `/home/douglas/src/galib/galib246/ga'
make: *** [lib] Error 2


1. Warnings:

[...]

In file included from
/usr/lib/gcc/i486-linux-gnu/4.0.1/../../../../include/c++/4.0.1/backward/iostream.h:31,
          from ../ga/std_stream.h:17,
   		 from ../ga/gaerror.h:16,
          from gaerror.C:12:
/usr/lib/gcc/i486-linux-gnu/4.0.1/../../../../include/c++/4.0.1/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or
antiquated header.  Please consider using one of the 32 headers found in
section 17.4.1.2 of the C++ standard.  Examples include substituting the
<X> header for the <X.h> header for C++ includes, or <iostream> instead
of the deprecated header <iostream.h>.  To disable this warning use
-Wno-deprecated.

[...]


#####

System:

$ uname -a
Linux 2.6.12 #1 Sat Jun 18 18:22:31 BRT 2005 i686 GNU/Linux

gcc (GCC) 4.0.1 20050617 (prerelease) (Debian 4.0.0-10)

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls
--without-included-gettext --enable-threads=posix --program-suffix=-4.0
--enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix


Best regards,

-- 
Douglas Augusto



More information about the galib mailing list