Issue with vtable duplication when compiling c++

Peter Naulls peter at
Fri Aug 13 10:31:26 PDT 2004

In message <411C9854.8000503 at>
          Nick Burrett <nick at> wrote:

> John-Mark Bell wrote:
> The problem here is to do with linker sections.  x86 g++ 3.3 does 
> duplicate the vtable block in both object files, however it uses a 
> gnu_linkonce attribute and section names to ensure that the linker 
> doesn't give multiple definitions.

Yet another reason to use ELF, I fear.

Peter Naulls - peter at        |
Drobe -        | The Premier RISC OS News Site

More information about the gcc mailing list