[galib] compilation

David Parrott dparrott at p2.cs.ohiou.edu
Thu Mar 4 16:19:16 EST 2004


Anyone else get errors when compiling galib with newer compilers? I am
using: gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
seems that there are errors with the templates. Any aid out there?

thanks,
Dave Parrott

this is what i get:

In file included from ex21.C:18:
../ga/GARealGenome.C:85: error: specialization of T
GAAlleleSet<T>::allele()
const [with T = float] after instantiation
../ga/GARealGenome.C:85: error: prototype for `T
GAAlleleSet<T>::allele() const
[with T = float]' does not match any in class `GAAlleleSet<float>'
../ga/GAAllele.C:231: error: candidates are: T
GAAlleleSet<T>::allele(unsigned
int) const [with T = float]
../ga/GAAllele.C:211: error: T GAAlleleSet<T>::allele() const
[with T = float]
../ga/GARealGenome.C:85: error: `T GAAlleleSet<T>::allele() const [with T =
float]' and `T GAAlleleSet<T>::allele() const [with T = float]' cannot be
overloaded
../ga/GARealGenome.C:117: error: specialization of T
GAAlleleSet<T>::allele(unsigned int) const [with T = float] after
instantiation
../ga/GARealGenome.C:117: error: prototype for `T
GAAlleleSet<T>::allele(unsigned int) const [with T = float]' does not match
any in class `GAAlleleSet<float>'
../ga/GAAllele.C:231: error: candidates are: T
GAAlleleSet<T>::allele(unsigned
int) const [with T = float]
../ga/GAAllele.C:211: error: T GAAlleleSet<T>::allele() const
[with T = float]
../ga/GARealGenome.C:117: error: `T GAAlleleSet<T>::allele(unsigned int)
const
[with T = float]' and `T GAAlleleSet<T>::allele(unsigned int) const [with T
= float]' cannot be overloaded
ex21.C: In function `int main(int, char**)':
ex21.C:72: warning: comparison between signed and unsigned integer
expressions
make[1]: *** [ex21.o] Error 1
make[1]: Leaving directory `/home/dparrott/galib245/examples'
make: *** [all] Error 2





More information about the galib mailing list