Mail Archives: djgpp/1996/11/17/03:51:35
On Sat, 16 Nov 1996, Henrik Bddrnhielm wrote:
> I am using RHIDE beta 6 and I tried to compile and link a program I've
> made. The compilation went OK, but the linker only says :
>
> 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 to `main'
You don't have a `main' function in your program. C programs must have a
function by that name, which is the main entry point to your program.
Another possible cause is that you didn't create a project in Rhide, and
so gcc is compiling an empty program.
- Raw text -