delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/08/03/06:31:59

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ___divdi3 and ___moddi3
Date: 3 Aug 2005 10:25:45 GMT
Lines: 16
Message-ID: <3lbkd9F11piefU1@news.dfncis.de>
References: <2497d9a2050802141537ca5ba8 AT mail DOT gmail DOT com>
X-Trace: news.dfncis.de x+DvIeTkreLm7XQ9Sm0+Ggq8kR9LT7zfnOomnAuCkgJYlmFQb+bH5FlfNP
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Matthew Petricone <strstream AT gmail DOT com> wrote:

>   it compiles ok. but it won't like either with djgpp's ld or ld-elf

It's almost never a good idea to invoke 'ld' directly unless you have very
particular reasons for doing so.  Let 'gcc' handle that for you.

>  it gives the following errors: undifined reference to '___moddi3'
> and undifined reference to '___divdi3'

Those are from libgcc.a, which a linker run coordinated by 'gcc' would
have included automatically.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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