delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/08/16:35:41

From: john_maple AT yahoo DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't compile Hello World!!!
Date: Mon, 08 Mar 1999 21:10:51 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 29
Message-ID: <7c1ecj$p6o$1@nnrp1.dejanews.com>
References: <7c0l5l$1dt$1 AT nnrp1 DOT dejanews DOT com> <7c14vr$1t8u$1 AT quince DOT news DOT easynet DOT net>
NNTP-Posting-Host: 205.232.179.186
X-Article-Creation-Date: Mon Mar 08 21:10:51 1999 GMT
X-Http-User-Agent: Mozilla/4.05 [en] (Win95; U)
X-Http-Proxy: 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 205.232.179.186
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> >If I compile within
> >RHIDE and say "Build All" the object file gets created but in the file
> >compile to the .exe, it fails.

To clarify, RHIDE gives this error in the status bar:
Creating: hello.exe
Error: c:djgpp/bin/ld.exe: Cannot open -lstdcx: No such file or directory
(ENOENT)


> >If I compile directly on the DOS command line with "gcc hello.cc -o
> >hello.exe" I get the following errors:
> >
> >c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to `cout'
> >c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to
> >`ostream::operator(char const *)'

Are these different errors, or are they two versions of the same error based
on whether I am compiling the executable from the command line vs. RHIDE.  Or
are they merely symptoms of a larger problem?

In any event, I still have no idea what the problem is and would appreciate
any and all help I can get.  Thanks!

-John Maple

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

- Raw text -


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