www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/17/03:51:35

Date: Sun, 17 Nov 1996 10:28:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Henrik Bddrnhielm <Henrik DOT Baarnhielm AT abc DOT se>
Cc: djgpp AT delorie DOT com
Subject: Re: Linking Problem
In-Reply-To: <328E26DA.1259@abc.se>
Message-Id: <Pine.SUN.3.91.961117102626.12547f-100000@is>
Mime-Version: 1.0

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 -


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