Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!infopiz!lupine!rfg From: rfg@NCD.COM (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: Re: Need help, missing virtual tables, Sun C++ 2.0 Message-ID: <5507@lupine.NCD.COM> Date: 12 May 91 07:18:12 GMT References: <1991May9.173442.5946@dragon.wpd.sgi.com> <1991May10.182759.28323@neon.Stanford.EDU> <1991May11.005908.22236@dragon.wpd.sgi.com> Organization: Network Computing Devices, Inc., Mt. View, CA Lines: 24 In article <1991May11.005908.22236@dragon.wpd.sgi.com> pal@wpd.sgi.com writes: >In article <1991May10.182759.28323@neon.Stanford.EDU>, philip@pescadero.stanford.edu (Philip Machanick) writes: >|> Consider a class with only inline virtual functions. >|> >|> When is the translator going to generate the virtual function table for this? >|> (Is it going to give up on trying to be optimal in this case and just generate >|> it in every file where the header is included?) > >I believe so. Something sounds wrong here. If vtables have extern linkage (which they must if they are going to end up being sharde in some cases across compilation units) and if you have several of them (all presemably with the same name) then your going to get "multiply defined" errors at link time, right? -- // Ron ("Loose Cannon") Guilmette // Internet: rfg@ncd.com uucp: ...uunet!lupine!rfg // New motto: If it ain't broke, try using a bigger hammer.