delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/04/03:38:58

Date: Wed, 4 Mar 1998 10:39:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ricki Lee King <rlking AT iquest DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: compile error
In-Reply-To: <3.0.5.32.19980303220712.007a9540@pop.iquest.net>
Message-ID: <Pine.SUN.3.91.980304103844.6541M-100000@is>
MIME-Version: 1.0

On Tue, 3 Mar 1998, Ricki Lee King wrote:

>  Compiling: test.cpp
>  no errors
>  Creating: test.exe
>  Error: c:/djgpp/lib\crt0.o(.data+0x92):crt0.s: undefined reference to `main'
>  Error: c:/djgpp/lib/libc.a(crt1.o)(.text+0x312):crt1.c: undefined reference

I cannot reproduce this problem (using the source you posted).  Please
post the commands you used to compile and link the program.  Also, add
-v to these commands and post everything GCC prints while
compiling/linking.

- Raw text -


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