delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/05/19:31:43

Mime-Version: 1.0
To: <Kbwms AT aol DOT com>
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Need Help Compiling Code with Templates
Cc: djgpp AT delorie DOT com
Date: Fri, 5 Jun 1998 16:27:00 -0700
Message-ID: <19980605232649.AAE4158@ppp105.cartsys.com>

At 08:42  6/3/1998 EDT, Kbwms AT aol DOT com wrote:

>A possible explanation is that the external generated by the compiler is
>"_main" whereas the undefined reference is to "main."  I see that this is
>true for other programs that I have compiled but they don't use templates.

Oh! Yes, on closer inspection it looks like `crt0.o' is somehow trying to
reference `main' instead of `_main', which is wrong. Are you using the stock
crt0.o, or have you rebuilt it or something?

Post the output of `nm lib/crt0.o', and perhaps its size and date stamp as well.

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


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