Odd error with g++
- From: "elitecodex" <elitecodex@xxxxxxxxx>
- Date: 20 Jan 2006 19:56:50 -0800
I am getting this linking error. Any idea of what is means and where I
can look for a solution?
/bin/sh ../libtool --tag=CXX --mode=link g++ -O0 -g3 -Wno-deprecated -o
job_file job_file.o jobfile.o jobfilereader.o
mkdir .libs
g++ -O0 -g3 -Wno-deprecated -o job_file job_file.o jobfile.o
jobfilereader.o
jobfile.o: In function `JobFile':
/home/wchapman/project/shared_logic/job_file/src/jobfile.cpp:4:
undefined reference to `vtable for JobFile'
/home/wchapman/project/shared_logic/job_file/src/jobfile.cpp:4:
undefined reference to `vtable for JobFile'
/home/wchapman/project/shared_logic/job_file/src/jobfile.cpp:9:
undefined reference to `vtable for JobFile'
/home/wchapman/project/shared_logic/job_file/src/jobfile.cpp:9:
undefined reference to `vtable for JobFile'
jobfile.o: In function `~JobFile':
/home/wchapman/project/shared_logic/job_file/src/jobfile.cpp:15:
undefined reference to `vtable for JobFile'
jobfile.o:/home/wchapman/project/shared_logic/job_file/src/jobfile.cpp:15:
more undefined references to `vtable for JobFile' follow
jobfilereader.o:(.gnu.linkonce.r._ZTI13JobFileReader+0x8): undefined
reference to `typeinfo for JobFile'
collect2: ld returned 1 exit status
What is a vtable? What does this mean?
Basically, I have a object JobFile and a object JobFileReader that
inherits it. I am trying to instaniate a JobFileReader class for
testing. Im using kdevelop if it helps.
Thanks,
Will
.
- Follow-Ups:
- Re: Odd error with g++
- From: David W Noon
- Re: Odd error with g++
- From: Tim Keck
- Re: Odd error with g++
- Prev by Date: Re: Reasonable defaults for backup software
- Next by Date: Re: working with files the linux way...
- Previous by thread: anyone can help? weird Linux concurrency problem in math calculation
- Next by thread: Re: Odd error with g++
- Index(es):