delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/20/03:12:07

From: "BWilliams" <premila AT sprynet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: trouble linking/running code with RHIDE
Date: Sat, 19 Jun 1999 18:38:12 -0400
Organization: Sprynet News Service
Lines: 25
Message-ID: <7kh5v2$5lb$1@juliana.sprynet.com>
NNTP-Posting-Host: bos-c52-001-vty32.as.wcom.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I just downloaded DJGPP and RHIDE to try them out, and I can't get a program
to compile into an executable and run.

Here's what I've been doing:
In RHIDE, I opened a *.cpp file that I know compiles properly with my old
Borland C++ compiler.
I tried to compile that file, and it compiled into an *.obj file with no
errors.
I tried to link the file, and got the (fairly usual) -lstdx error, and fixed
it without problem using the information in the FAQ.
I tried to link the file again, and now I get the following:
     Error: c:/djgpp/lib/crt0.o(.data+0xc2):crt0.s: undefined reference to
'main'
     Error: c:/djgpp/lib/libc.a(crt1.o)(.text+0x446):crt1.c: undefined
reference to 'main'

I've searched the FAQ for specific reference to this problem, and I can't
find it.  Am I missing something in the FAQ? If not, does anyone have a
solution to this problem?

Thanks
--Brandon Williams



- Raw text -


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