Mail Archives: djgpp/1999/07/25/05:05:56

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Lib problems
Date: Sun, 25 Jul 1999 00:36:37 GMT
Organization: Monash Uni
Lines: 16
Distribution: world
Message-ID: <>
References: <1%rm3.46910$vw1 DOT 1775754 AT newscene DOT newscene DOT com>
X-Trace: 932862946 18059 (25 Jul 1999 00:35:46 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 25 Jul 1999 00:35:46 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sounds like you don't have a "main" function in your code.


On 24 Jul 1999 18:30:08 -0500, "Greg" <gbratton AT bellsouth DOT net> wrote:

>    I just started with c++. I tried to compile my hello world program and i
>get these errors:
>c:/djgpp/lib/crt0.o(.dara+0xc2):crt0.s: undefined reference to 'main'
>c:/djgpp/lib/libc.a(crt1.o(.text+0x446:crt1.c: undefined reference to 'main'

       *** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page:

- Raw text -

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