[galib] next problem under linux

Tomasz Samotyjak t.samotyjak at pwsz.elblag.pl
Fri Apr 16 05:06:38 EDT 2004


There is listed bugs under compilation. What to do?

/usr/local/include/ga/GARealGenome.C:85: error: specialization of T
   GAAlleleSet<T>::allele() const [with T = float] after instantiation
/usr/local/include/ga/GARealGenome.C:85: error: prototype for `T
   GAAlleleSet<T>::allele() const [with T = float]' does not match any in 
class
   `GAAlleleSet<float>'
/usr/local/include/ga/GAAllele.C:231: error: candidates are: T
   GAAlleleSet<T>::allele(unsigned int) const [with T = float]
/usr/local/include/ga/GAAllele.C:211: error:                 T
   GAAlleleSet<T>::allele() const [with T = float]
/usr/local/include/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
/usr/local/include/ga/GARealGenome.C:117: error: specialization of T
   GAAlleleSet<T>::allele(unsigned int) const [with T = float] after
   instantiation
/usr/local/include/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>'
/usr/local/include/ga/GAAllele.C:231: error: candidates are: T
   GAAlleleSet<T>::allele(unsigned int) const [with T = float]
/usr/local/include/ga/GAAllele.C:211: error:                 T
   GAAlleleSet<T>::allele() const [with T = float]
/usr/local/include/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
In file included from moj.cpp:8:
procedury.cpp: In function `void stifbs(float*, float*, int, float*, float,
   float, float*, float*, float*, float*, float*, long unsigned int, long
   unsigned int*, float*, float*, void (*)(float, float*, float*, float*,
   float*, long unsigned int, long unsigned int*, float*, float*), void
   (*)(float, float*, float*, float**, int, float*, float*, long unsigned int,
   long unsigned int*, float*, float*))':
procedury.cpp:253: error: ISO C++ says that `double pow(double, double)' and `
   float std::pow(float, float)' are ambiguous even though the worst 
conversion
   for the former is better than the worst conversion for the latter
procedury.cpp:253: error: ISO C++ says that `double pow(double, double)' and `
   float std::pow(float, int)' are ambiguous even though the worst conversion
   for the former is better than the worst conversion for the latter
procedury.cpp:286: error: ISO C++ says that `double pow(double, double)' and `
   float std::pow(float, float)' are ambiguous even though the worst 
conversion
   for the former is better than the worst conversion for the latter
procedury.cpp:286: error: ISO C++ says that `double pow(double, double)' and `
   float std::pow(float, int)' are ambiguous even though the worst conversion
   for the former is better than the worst conversion for the latter
moj.cpp: In function `float Objective(GAGenome&)':
moj.cpp:86: warning: assignment to `int' from `double'
moj.cpp:86: warning: argument to `int' from `double'
moj.cpp:97: warning: passing `float' for argument passing 2 of `float**
   matrix(long int, long int, long int, long int)'
moj.cpp:97: warning: argument to `long int' from `float'
moj.cpp:111: warning: passing `float' for argument passing 2 of `void
   model(float*, int, float*, int, float*, float*, float*, float*, float*)'
moj.cpp:111: warning: argument to `int' from `float'

-- 
Pozdrawiam
Tomasz Samotyjak




More information about the galib mailing list