[galib] composite genome

francis keyes fkeymo at gmail.com
Fri Apr 16 12:58:31 EDT 2010


Hey All,

I'm trying to create my own composite genome by modifying ex5.C from the
GALib examples.  However, when I try to compile my code I'm getting the
following error:

g++ -g -Wall   -c -o my-compga.o my-compga.cpp
g++ my-compga.o -o my-compga -L../../ga -lga -lm
my-compga.o: In function `CompositeGenome::equal(GAGenome const&) const':
/galib247/my_code/comp-test/my-compga.cpp:118: undefined reference to `int
operator==<GA1DArrayAlleleGenome<float> >(GA1DArrayAlleleGenome<float>
const&, GA1DArrayAlleleGenome<float> const&)'
/galib247/my_code/comp-test/my-compga.cpp:118: undefined reference to `int
operator==<GABin2DecGenome>(GABin2DecGenome const&, GABin2DecGenome const&)'
collect2: ld returned 1 exit status
make: *** [my-compga] Error 1


Can anyone help with this?  I can't figure out what I've done wrong.  Since
my composite genome is part GABin2DecGenome, I didn't change anything with
regard to that type from ex5.C, so the second error here is really
confusing.

Thanks so much,
Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20100416/147588b3/attachment.htm


More information about the galib mailing list