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