Date: Sun, 17 Nov 1996 10:28:07 +0200 (IST) From: Eli Zaretskii To: Henrik Bddrnhielm Cc: djgpp AT delorie DOT com Subject: Re: Linking Problem In-Reply-To: <328E26DA.1259@abc.se> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.