Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Leda > Another linker ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 157 of 212
Post > Topic >>

Another linker problem

by iandemps@[EMAIL PROTECTED] (demps) Sep 2, 2004 at 06:59 PM

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




 1 Posts in Topic:
Another linker problem
iandemps@[EMAIL PROTECTED  2004-09-02 18:59:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 19:10:57 CDT 2008.