delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/08/12:46:15

From: Charles Terry <cterry AT plinetl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++ configuration
Date: Wed, 07 Jan 1998 21:12:11 -0800
Organization: All USENET -- http://www.Supernews.com
Lines: 35
Message-ID: <34B4602A.2DC8@plinetl.com>
References: <199801080049 DOT QAA10386 AT adit DOT ap DOT net>
Reply-To: cterry AT plinet DOT com
NNTP-Posting-Host: 5618 AT 206 DOT 168 DOT 149 DOT 182
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thanks for responding Nate (and anyone else)

> 
> >When I run gcc on a *.cpp using -t it links crt0.o. Shouldn't it use
> >gcrt0.o?
> No. `gcrt0.o' is used when linking a program for profiling. Both C and C++
> use `crt0.o' normally.
> > As is I get a ld warning "can't find start using default...."
> >If I specify gcrt0.o as input I dont get the message but 2 startup files
> >can't be right?
> No, shouldn't be. Especially since `gcrt0.o' is the same as `crt0.o' with a
> jump instruction added which pulls in the profiling code.
> >Then- either way I get and ld message "memory exausted".
> This is difficult to interpret. Please post:
> * The *exact* error messages you see
> * The command line you use to compile
> * The source file you are trying to compile (please reduce it to a small
> example)
> 
> Nate Eldredge
> eldredge AT ap DOT net

It's fixed.  When I tried to condense the source I coudn't come up with
any part that would be more relevant than another, so I looked
elsewhere.

I'd been messing with the "RSXWDK" libraries and had gotten crt0.o moved
to the djgpp lib directory.  Recompiled the assembly file and everything
is fine.
For anyones future reference the messages were.
LD.exe:warning cannot find entry symbol start; defaulting to 000010d0.
LD.exe: final link failed; memory exausted.

Thanks for takeing the time to try and save me from myself.
Charles

- Raw text -


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