www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/05/00:19:02

From: firewind <firewind AT metroid DOT dyn DOT ml DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Please Help!!! Im really stuck on this and the FAQs not helping
Date: 5 Sep 1997 02:50:55 GMT
Organization: Netcom
Lines: 17
Message-ID: <5uns2f$83h@dfw-ixnews11.ix.netcom.com>
References: <5uelvq$eul AT ns DOT technonet DOT com> <340F2C75 DOT 440B AT mho DOT net>
NNTP-Posting-Host: elp-tx2-08.ix.netcom.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Joel Rosenthal <ZZTiger AT mho DOT net> wrote:
> The answer is very simple:
> instead of #include <iostream.h>
> use this: #include "iostream.h"
> The quotes means it's in a nother directory.

A wrong answer is much worse than no answer at all. Please verify your answer
before posting. The poster's #include statement was correct, they just forgot
to link with the C++ and\or iostream libraries, like so:

gxx foo.cc -o foo.exe
gcc foo.cc -o foo.exe -liostr

-- 
[- 				 firewind	                            -]
[-   email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work)  -]
[- 	    "You're just jealous because the voices talk to -me-."          -]

- Raw text -


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