Article View: comp.os.os2.programmer.misc
Article #199Re: virtual-fn-table-ptr unresolved external?
From: Martin Lang
Date: Thu, 17 Nov 1994 07:51
Date: Thu, 17 Nov 1994 07:51
39 lines
2785 bytes
2785 bytes
Keith Bennett (kbennett@cpcug.org) wrote:
> After making some changes to some classes I'm working with, the
> linker rewarded me with this error:
> tport.lib(TSOCKET.CPP) : error L2029:
> '{TRANSPORT_SOCKET_SERVER_BUFFERED}TRANSPORT::virtual-fn-table-ptr' :
> unresolved external
> I know what the virtual function table is, but don't know why this error
> is occurring. Can anyone help?
> Thanks.
> - Keith
Most compilers create the virtual function table of a class when they
compile the first virtual function of that class. If you have
forgotten to provide an implementation of that function the compiler
does not create a virtual function table pointer and you get that
error.
Martin
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Martin Lang | Martin Lang +
+ Universitaet Stuttgart, IND | University of Stuttgart, IND +
+ Institut fuer Nachrichtenverm. | Institute of Communications +
+ und Datenverarbeitung | Switching and Data Technics +
+ Seidenstrasse 36 | Seidenstrasse 36 +
+ D-70174 Stuttgart | D-70174 Stuttgart, Germany +
++++++++++++++++++++++++++++++++++++++|++++++++++++++++++++++++++++++++++++++
+ +
+ Phone: +49 711 121 2490 +
+ Fax : +49 711 121 2477 +
+ Email: lang@ind.e-technik.uni-stuttgart.de +
+ +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Technical Details
Message-ID:
<3af22s$2c7r@info2.rus.uni-stuttgart.de>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.dfn.de!news.belwue.de!news.uni-stuttgart.de!langReferences:
<3aapou$245@cpcug.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11307a,fc560809a4788455 X-Google-Attributes: gid11307a,public X-Google-Thread: 10cd94,fc560809a4788455 X-Google-Attributes: gid10cd94,public X-Google-ArrivalTime: 1994-11-17 03:49:51 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.dfn.de!news.belwue.de!news.uni-stuttgart.de!lang From: lang@ind.e-technik.uni-stuttgart.de (Martin Lang) Newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l Subject: Re: virtual-fn-table-ptr unresolved external? Followup-To: comp.os.os2.programmer.misc,bit.listserv.os2-l Date: 17 Nov 1994 07:51:56 GMT Organization: University of Stuttgart, IND (Germany) Lines: 39 Message-ID: <3af22s$2c7r@info2.rus.uni-stuttgart.de> References: <3aapou$245@cpcug.org> NNTP-Posting-Host: hp04.ind.e-technik.uni-stuttgart.de X-Newsreader: TIN [version 1.2 PL2]