undefined reference to vtable for xxx

David H. Lynch Jr. dhlii@dlasys.net
Mon Jan 28 18:57:00 GMT 2008


>On Sat, 26 Jan 2008 04:20:54 -0500, David H. Lynch Jr. wrote:

>>    I am getting a plethora of the above errors.

>Please do paste at least part of the messages you get, along with the
>command line for the compiler. No interpretation or anything like it,
>just plian cut&paste.

>Philipp

	
	What you asked is below. The class Bluetooth inherits from the class wxPanel, ...
But I am not really looking for a specific answer to my specific problem.
I bump into this particular problem fairly regularly porting working windows C++ code to GCC.
Chasing down every method from a parent to a child - when I am not intimate with either the parent or child classes, 
wwhere the parent class is often from some toolkit and itself may be fairly deep in an object tree, is tedious - it is the kind of job tools are supposed to do for us.

	I appreciate that while the windows code may work, something is not quite kosher about the code and VC++ is either making assumptions
or getting by because whatever is not properly defined is never used.

	What I am really after is some clue how to figure out where the real underlying ambiguity in the code actually is.
Aside from the fact that the error itself is uninformative, the "help" I have found by googling - there is some key method in the parent class that is not in the 
child is not big help either.

	Is there any GCC option that will pry more information on this from GCC, Like what method is missing from child ?  
   

g++ -D_CRT_SECURE_NO_DEPRECATE -DUSING_GUI -DOPENSSL -DWX_WIDGETS	-DPICO_WIDGETS	-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -g3 -DLINUX -Ddhlii -I. -I/usr/src/pico/git/software/include -fmessage-length=0 -fdiagnostics-show-option -fms-extensions -Wno-multichar -I../cowpatty/WpdPack/Include -I../occommon -I../cowpatty -Ilibtommath-0.39  -DOSNAME="Linux" -fstack-protector-all -DPOSIX -I/usr/src/pico/git/software/include/posix -o chipper ChipperRevised.cpp ChipperFrame.cpp Bluetooth.cpp GridCellChoiceRenderer.cpp EzGrid.cpp FastComboEditor.cpp Filevault.cpp FVfpga.cpp Lanman.cpp sha1.cpp WEP.cpp WPA.cpp WPAfpga.cpp Zip.cpp Zipfpga.cpp ../winzipcrack/aescrypt.cpp ../winzipcrack/aeskey.cpp ../winzipcrack/aestab.cpp ../btpincrack/e.cpp ../btpincrack/my_getopt.c ../btpincrack/safer.cpp ../cowpatty/md5.cpp ../cowpatty/utils.cpp ../source/GString.cpp ../picoutil/pico_errors_client.cpp ../source/loadDll.cpp CompiledXRC.cpp ../source/posix/file.cpp ../source/posix/dll.cpp ../source/posix/findfile.cpp /usr/src/pico/git/software/source/posix/posix.cpp     -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8  -lcrypto -lpcap  


/tmp/ccH5bKOc.o: In function `Bluetooth':
/var/lib/git/pico/software/chipper/Bluetooth.cpp:47: undefined reference to `vtable for Bluetooth'
/var/lib/git/pico/software/chipper/Bluetooth.cpp:47: undefined reference to `vtable for Bluetooth'
/tmp/ccH5bKOc.o: In function `~Bluetooth':
/var/lib/git/pico/software/chipper/Bluetooth.cpp:64: undefined reference to `vtable for Bluetooth'
/var/lib/git/pico/software/chipper/Bluetooth.cpp:64: undefined reference to `vtable for Bluetooth'
/var/lib/git/pico/software/chipper/Bluetooth.cpp:64: undefined reference to `vtable for Bluetooth'





More information about the Gcc-help mailing list