Mail Archives: djgpp/1998/03/04/03:38:58
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 -