[galib] g++ compilation problems
Etienne Jodoin
etienne.jodoin at polymtl.ca
Tue Nov 25 08:43:33 EST 2003
Hello,
I'm actually using a Debian unstable system and when I compile galib with g++2.95, I have no
problem. However when I upgrade to a newer version of g++ like g++3.3.1, I receive a lots of
errors. It seems to concern the template classes. Here are few errors msg that I receive:
/root/FuzzyCoco/galib245/ga/GARealGenome.C:85: error: specialization of T
GAAlleleSet<T>::allele() const [with T = float] after instantiation
/root/FuzzyCoco/galib245/ga/GARealGenome.C:85: error: prototype for `T
GAAlleleSet<T>::allele() const [with T = float]' does not match any in class
`GAAlleleSet<float>'
/root/FuzzyCoco/galib245/ga/GAAllele.C:231: error: candidates are: T
GAAlleleSet<T>::allele(unsigned int) const [with T = float]
/root/FuzzyCoco/galib245/ga/GAAllele.C:211: error: T
GAAlleleSet<T>::allele() const [with T = float]
/root/FuzzyCoco/galib245/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
/root/FuzzyCoco/galib245/ga/GARealGenome.C:117: error: specialization of T
GAAlleleSet<T>::allele(unsigned int) const [with T = float] after
instantiation
/root/FuzzyCoco/galib245/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>'
/root/FuzzyCoco/galib245/ga/GAAllele.C:231: error: candidates are: T
GAAlleleSet<T>::allele(unsigned int) const [with T = float]
/root/FuzzyCoco/galib245/ga/GAAllele.C:211: error: T
GAAlleleSet<T>::allele() const [with T = float]
/root/FuzzyCoco/galib245/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
I would like to upgrade to a newer compiler but I must be able to compile galib with it! Does
anyone know something about this problem?
Thx
Etienne
More information about the galib
mailing list