[galib] galib-2.4.6pre1
Liekens, A.M.L.
A.M.L.Liekens at tue.nl
Wed Dec 29 16:34:03 EST 2004
Oh that's bad - parts of the code will thus need to be adapted for different gcc versions :/ Luckily this is only required in the header file of GAAllele.h: We have to figure out the version numbers of GCC at line 147 in the patched version of GAAllele.h, which can e.g. be done with
...
#elif defined(__GNUG__)
#if (__GNUC__ << 16) + __GNUC_MINOR__ >= ( 3 << 16 ) + 4
// the code in here is only compiled for versions >= 3.4
#else
// the code in here is for older versions of gcc
#endif
#elif defined(GALIB_USE_ANSI_TEMPLATES)
...
Anthony,-
-----Original Message-----
From: galib-bounces at mit.edu on behalf of Tomasz Samotyjak, PWSZ
Sent: Wed 12/29/04 20:24
To: galib at mit.edu
Cc:
Subject: [galib] galib-2.4.6pre1
Hallo,
That patch really works :-) Thanks. But only for gcc 3.4. What about gcc
3.3? When I try compile on gcc 3.3.1 with mingw I get that errors:
ga/GARealGenome.C:19: error: specialization of T GAAlleleSet<T>::allele()
const
[with T = float] after instantiation
ga/GARealGenome.C:19: error: prototype for `T GAAlleleSet<T>::allele() const
[with T = float]' does not match any in class `GAAlleleSet<float>'
C:/Dev-Cpp/include/ga/GAAllele.C:231: error: candidates are: T
GAAlleleSet<T>::allele(unsigned int) const [with T = float]
C:/Dev-Cpp/include/ga/GAAllele.C:211: error: T
GAAlleleSet<T>::allele() const [with T = float]
ga/GARealGenome.C:19: error: `T GAAlleleSet<T>::allele() const [with T =
float]
' and `T GAAlleleSet<T>::allele() const [with T = float]' cannot be
overloaded
ga/GARealGenome.C:51: error: specialization of T
GAAlleleSet<T>::allele(unsigned int) const [with T = float] after
instantiation
ga/GARealGenome.C:51: error: prototype for `T
GAAlleleSet<T>::allele(unsigned
int) const [with T = float]' does not match any in class
`GAAlleleSet<float>
'
C:/Dev-Cpp/include/ga/GAAllele.C:231: error: candidates are: T
GAAlleleSet<T>::allele(unsigned int) const [with T = float]
C:/Dev-Cpp/include/ga/GAAllele.C:211: error: T
GAAlleleSet<T>::allele() const [with T = float]
ga/GARealGenome.C:51: 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
Best regards
Tomasz Samotyjak
http://samotyjak.pwsz.elblag.pl
_______________________________________________
galib mailing list
galib at mit.edu
http://mailman.mit.edu/mailman/listinfo/galib
More information about the galib
mailing list