Problem compiling with galib

ids ga idsuga at yahoo.com
Sat May 4 08:12:36 EDT 2002


Hello,

We installed GAlib 2.4.5 on our caldera linux machine
2.4.2. We tried compiling the ex17.C file using g++
version 2.95.2.
But we are getting a pageful of "undefined reference"
errors like:

/tmp/cceUgrZ5.o: In function `main':
/tmp/cceUgrZ5.o(.text+0x14e): undefined reference to
`GAGenome::initializer(void (*)(GAGenome &))'
/tmp/cceUgrZ5.o(.text+0x168): undefined reference to
`GAGenome::mutator(int (*)(GAGenome &, float))'
/tmp/cceUgrZ5.o(.text+0x182): undefined reference to
`GAGenome::crossover(int (*)(GAGenome const &,
GAGenome const &, GAGenome *, GAGenome *))'
/tmp/cceUgrZ5.o(.text+0x19e): undefined reference to
`GASteadyStateGA::GASteadyStateGA(GAGenome const &)'
/tmp/cceUgrZ5.o(.text+0x1aa): undefined reference to
`gaDefSigmaTruncationMultiplier'
/tmp/cceUgrZ5.o(.text+0x1bc): undefined reference to
`GASigmaTruncationScaling::GASigmaTruncationScaling(float)'
/tmp/cceUgrZ5.o(.text+0x1d5): undefined reference to
`GASteadyStateGA::scaling(GAScalingScheme const &)'
/tmp/cceUgrZ5.o(.text+0x1ee): undefined reference to
`GAGeneticAlgorithm::set(char const *, int)'
/tmp/cceUgrZ5.o(.text+0x20e): undefined reference to
`GAGeneticAlgorithm::set(char const *, double)'
/tmp/cceUgrZ5.o(.text+0x22e): undefined reference to
`GAGeneticAlgorithm::set(char const *, double)'
.
.
.
.



Could anyone please suggest a solution to this
problem.
Thank you

Jaykumar
Anubhav
Manish
Sumeet


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com



More information about the galib mailing list