www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/10/15:22:52

From: Carsten Schäuble <schauble AT inf DOT fu-berlin DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: undefined reference to __builtin_delete
Date: Wed, 10 Sep 1997 16:31:13 +0200
Organization: Freie Universitaet Berlin
Lines: 19
Message-ID: <3416AF31.4FD0@inf.fu-berlin.de>
NNTP-Posting-Host: ncr2.inf.fu-berlin.de (160.45.112.151)
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

i compile a complete independent (no includes, no inheritance) c++ class
with

	gcc -c -Wall -o ctrl.o ctrl.c

if i define my own destructor in the class, the linker

	ld -t -oformat coff-go32 -e startup -Ttext 0x10000 -o system startup.o
main.o ctrl.o

aborts with error

	ctrl.o(.text+0x15):ctrl.cc: undefined reference to __builtin_delete

if the destructor is not defined (the standard destructor is used), so
it works fine


matthias

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019