Complilation problem

Hello I have a problem:
I have 4 files: AllOnesGA.cpp, Population.h, Individual.h, GeneticAlgorithm.h
In AllOnesGA.cpp I wrote in main():
GeneticAlgorithm ga(100, 0.01, 0.95, 0);

and an error message throws:
GeneticAlgorithm’ was not declared in this scope
GeneticAlgorithm ga(100, 0.01, 0.95, 0);

¿are we supposed to imagine your code?

you didn't provide a prototype for the function
or you didn't include the file that has it
or you forgot the namespace
or it's a static member function
Registered users can post here. Sign in or register to post.