You are not logged in.
Pages: 1
Hi
the following works:
>make
\rm -f ga.exe
g++ -O2 -I/usr/include/ga -c individual.cc
g++ -O2 -I/usr/include/ga -o ga.exe -lrt individual.o /usr/lib/libga.a
In the other hand the following:
>\rm -f ga.exe
>g++ -O2 -I/usr/include/ga -o ga.exe -lga -lrt individual.o
individual.o: In function `main':
individual.cc:(.text+0x60f): undefined reference to `GARandomSeed(unsigned int)'
individual.cc:(.text+0x91a): undefined reference to `GAGenome::GAGenome(void (*)(GAGenome&), int (*)(GAGenome&, float), float (*)(GAGenome const&, GAGenome const&))'
... and zillion of other errors ...
Any idea what am i doing wrong?
Offline
have you checked if there is appropriate *.so in /usr/lib?
Offline
No, there's only .a
Isn't it enough?
Offline
Pages: 1