[galib] new user needs help

haidi emade el dean haidi_badr2 at hotmail.com
Tue Dec 30 07:16:45 EST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20081230/ef8739ea/attachment.htm


More information about the galib mailing list