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

Tomasz Samotyjak t.samotyjak at pwsz.elblag.pl
Tue Jun 28 03:54:24 EDT 2005


Hallo,

I've patched galib for use with gcc-4.0.0. Pactch is on attachment. Woith 
problems report me please.

Dnia wtorek, 28 czerwca 2005 04:19, Douglas A. Augusto napisał:
> 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/io
>stream.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/ba
>ckward_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,

-- 
Pozdrawiam
Tomasz Samotyjak
http://samotyjak.pwsz.elblag.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: galib246_gcc4.patch
Type: text/x-diff
Size: 851 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/galib/attachments/20050628/e93b305f/attachment.bin


More information about the galib mailing list