[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
problems compilling
Hi,
I've just downloaded xarchon... but I got problems compiling it.. I'm
not a C++ guru, so I can't workaround ... as I can see, code is ok, but
gcc dies with the following error:
----------------------
make[2]: Entering directory `/home/hernux/usr/soft/xarchon-0.50/src'
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -
I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -
I/usr/X11R6/include -I../ -g -O2 -Wall -c Xarchon_Problem.cpp
In file included from Xarchon_Problem.hpp:15,
from Xarchon_Problem.cpp:1:
Problem.hpp: In member function `virtual G Minimax_Goal_Test<G,
T>::Goal_Value(T*)':
Problem.hpp:309: error: `tester' undeclared (first uses in this
function)
Problem.hpp:312: error: `generator' undeclared (first uses in this
function)
Problem.hpp:312: error: `goal_acc' undeclared (first uses in this
function)
Problem.hpp:316: error: `next' undeclared (first uses in this function)
Problem.hpp: In member function `virtual G Multi_Minimax_Goal_Test<G,
T>::Goal_Value(T*)':
Problem.hpp:343: error: `goal_acc' undeclared (first uses in this
function)
Problem.hpp:350: error: `d' undeclared (first uses in this function)
Problem.hpp:350: error: `b' undeclared (first uses in this function)
Problem.hpp:350: error: `gen' undeclared (first uses in this function)
Problem.hpp:350: error: `tester' undeclared (first uses in this
function)
Problem.hpp:352: error: `accumulator' undeclared (first uses in this
function)
Problem.hpp:352: error: `acc' undeclared (first uses in this function)
In file included from Xarchon_Genetic.hpp:6,
from Xarchon_Interface.hpp:6,
from Xarchon_Problem.cpp:2:
Genetic.hpp: In member function `virtual Genetic_Operator<T>*
Genetic_Generation<T>::Choose_Operator()':
Genetic.hpp:219: error: expected `;' before "start"
Genetic.hpp:220: error: expected `;' before "end"
Genetic.hpp:221: error: expected `;' before "iter"
Genetic.hpp:224: error: `iter' undeclared (first uses in this function)
Genetic.hpp:224: error: `start' undeclared (first uses in this function)
Genetic.hpp:224: error: `end' undeclared (first uses in this function)
Genetic.hpp: In member function `virtual Genetic_Population<T>*
Genetic_Generation_a<T>::Operate(Genetic_Population<T>*)':
Genetic.hpp:252: error: no arguments for `Choose_Operator' que dependan
de un parámetro de plantilla, por lo cual una declaración de
`Choose_Operator' debe estar disponibleGenetic.hpp:252: error: (si
utiliza `-fpermissive', G++ aceptará su código, pero permitir el uso de
un nombre sin declarar es obsoleto)
Genetic.hpp:267: error: `fit_func' undeclared (first uses in this
function)
----------------------
every field that's "undeclared" is declared in super class, so, as I can
see, code is ok..
can anyone help?
hernux