Hello all,
I've hit a wall with this linker problem, my code compiles fine but
when it goes to link I get the following:
/bin/sh ../libtool --silent --mode=link --tag=CXX g++
-Wnon-virtual-dtor
-Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W
-Wpointer-arith
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE
-Wcast-align -Wconversion -O2 -O0 -g3 -Wall -fno-exceptions
-fno-check-new -o
icanga1 Population.o Individual.o ianGA.o GramSlnIndiv.o geGene.o
geConstEvolGA.o data.o main.o -lslang
ianGA.o: In function `ianGA::ianGA[not-in-charge]()':
/home/krow/coderoom/GE/GE_1.02/BNFParser/Gramma-0.63/tmp/slangTest/icanga1/icanga1/ianGA.cpp:27:
undefined reference to `vtable for ianGA'
ianGA.o: In function `ianGA::ianGA[in-charge]()':
/home/krow/coderoom/GE/GE_1.02/BNFParser/Gramma-0.63/tmp/slangTest/icanga1/icanga1/ianGA.cpp:27:
undefined reference to `vtable for ianGA'
geConstEvolGA.o:/home/krow/coderoom/GE/GE_1.02/BNFParser/Gramma-0.63/tmp/slangTest/icanga1/icanga1/geConstEvolGA.cpp:24:
undefined reference to `typeinfo for ianGA'
geConstEvolGA.o: In function `ianGA::~ianGA [not-in-charge]()':
/home/krow/coderoom/GE/GE_1.02/BNFParser/Gramma-0.63/tmp/slangTest/icanga1/icanga1/geConstEvolGA.cpp:24:
undefined reference to `vtable for ianGA'
collect2: ld returned 1 exit status
gmake[2]: *** [icanga1] Error 1
In the code geConstEvolGA inherits from the abstract class ianGA.
I'm not even sure what the problem is never mind how to fix it. If
anyone has any ideas they would be much appreciated.
Thanks in advance,
Ian