[galib] new user needs help

fr.teodoro@gmail.com fr.teodoro at gmail.com
Wed Dec 31 06:10:16 EST 2008


Maybe you need to add the libga.a to your project.

On Tue, Dec 30, 2008 at 12:16:45PM +0000, haidi emade el dean wrote:
> 
> hello,
> Please i'm a new user to GALIB, i downloaded galib247 under suse 10.3
> i created a c++ project and rename ex1.c to ex1.cpp add add it as a file in this project but when i tried to compile it i received this msg:
> ---------------------------------------------------------------------------------------------------------------------------------------------
> ex1.o: In function `main':
> /home/haidi/GAlib1/src/ex1.cpp:55: undefined reference to `GA2DBinaryStringGenome::GA2DBinaryStringGenome(unsigned int, unsigned int, float (*)(GAGenome&), void*)'
> /home/haidi/GAlib1/src/ex1.cpp:62: undefined reference to `GASimpleGA::GASimpleGA(GAGenome const&)'
> /home/haidi/GAlib1/src/ex1.cpp:63: undefined reference to `GASimpleGA::populationSize(unsigned int)'
> /home/haidi/GAlib1/src/ex1.cpp:71: undefined reference to `GAStatistics::bestIndividual(unsigned int) const'
> /home/haidi/GAlib1/src/ex1.cpp:74: undefined reference to `GASimpleGA::~GASimpleGA()'
> /home/haidi/GAlib1/src/ex1.cpp:74: undefined reference to `GASimpleGA::~GASimpleGA()'
> /home/haidi/GAlib1/src/ex1.cpp:74: undefined reference to `GA2DBinaryStringGenome::~GA2DBinaryStringGenome()'
> /home/haidi/GAlib1/src/ex1.cpp:74: undefined reference to `GA2DBinaryStringGenome::~GA2DBinaryStringGenome()'
> ex1.o: In function `GAParameterList::set(char const*, unsigned int)':
> /home/haidi/GAlib1/src/ga/GAParameter.h:78: undefined referen
> ce to `GAParameterList::set(char const*, void const*)'
> ex1.o: In function `GAGeneticAlgorithm::pMutation(float)':
> /home/haidi/GAlib1/src/ga/GABaseGA.h:186: undefined reference to `GAParameterList::set(char const*, double)'
> ex1.o: In function `GAGeneticAlgorithm::pCrossover(float)':
> /home/haidi/GAlib1/src/ga/GABaseGA.h:183: undefined reference to `GAParameterList::set(char const*, double)'
> ex1.o: In function `GAGeneticAlgorithm::evolve(unsigned int)':
> /home/haidi/GAlib1/src/ga/GABaseGA.h:138: undefined reference to `GAStatistics::flushScores()'
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> i will be thankful for any help please
> thank you for your time
> 
> 
> 
> _________________________________________________________________
> News, entertainment and everything you care about at Live.com. Get it now!
> http://www.live.com/getstarted.aspx
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://mailman.mit.edu/mailman/listinfo/galib


-- 
FRT



More information about the galib mailing list