Date: Wed, 4 Mar 1998 10:39:07 +0200 (IST) From: Eli Zaretskii To: Ricki Lee King cc: djgpp AT delorie DOT com Subject: Re: compile error In-Reply-To: <3.0.5.32.19980303220712.007a9540@pop.iquest.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.