Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: From: Nate Eldredge 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> Precedence: bulk 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