delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/03/04/14:16:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <44076F99.69604EE3@compuserve.de>
Date: Thu, 02 Mar 2006 23:20:09 +0100
From: Florian Liebig <FlorianLiebigEMD AT compuserve DOT de>
X-Mailer: Mozilla 4.7 [de]C-CCK-MCD CSO 1.0 (Win95; I)
X-Accept-Language: de,en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: problem with compilation output
Lines: 20
NNTP-Posting-Host: 92bae19b.news.freenet.de
X-Trace: DXC=@d>WT][mQ]5 AT VdkXV1T0j5KZSdekToV02Wh[O?HCmiW409BeE`GJJ71\CV32T<dhl:X26?aIii8o5
X-Complaints-To: abuse AT freenet DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hi guys. i'm trying to compile a small kernel in gcc c++ 2.7.2.
all the time , when trying to link my c++ compiled .o file, I get those
error messages:

C:\GNU>gcc -Wall -O -fstrength-reduce -fomit-frame-pointer sys.cpp
-nostdlib
c:/gnu/bin\ld.exe: warning: cannot find entry symbol start; defaulting
to 000010
a8
sys.cc(.text+0x47): undefined reference to `__builtin_delete'
sys.cc(.text+0x101): undefined reference to `__main'

How can I avoid __builtin_delete from being called, like tell the
compiler to emit destructor calls directly before main() ends ?
How to handle the problem with __main ??

Would someone like to help me,please ?



- Raw text -


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