🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #9823

Re: ??

#9823
From: Bart.Vanhauwaert
Date: Tue, 02 Apr 2002 14:42
38 lines
1939 bytes
Dietmar Hertsen <dietmar.hertsen@pandora.be> wrote:
> D:\C++\GNU>g++ first.cpp
> first.cpp:2: No include path in which to find iostream
> first.cpp:3: No include path in which to find string

Waarschijnlijk is de installatie niet helemaal gebeurd zoals het hoort.
Hoe heb je GCC geinstalleerd/gecompileerd/afgehaald. Als je een binary
hebt afgehaald zou het kunnen dat je headers van de standaard c++ library
niet op de juiste plaats hebt staan (of niet afgehaald)

Ikzelf gebruik (soms) de cygwin distributie (www.cygwin.com). Heel
eenvoudige installatie en als bonus krijg je er nog een helehoop
'handige' dingen bovenop (indien je wil).

> broncode prog:

> // My first C++ program
> #include <iostream>
> #include <string>
> using namespace stdl;
                    ^^^^

using namespace std;

> int main (){
> 	string name;
> 	cout << "Give me your name:" << endln;
                                     ^^^^
endl;

> 	cin >> name;
> 	cout << "Ah, so your name is " << name << endln;
> }

cu bart

-- 
http://www.irule.be/bvh/
Technical Details
Message-ID: <60gc8a.jqr.ln@ns1.irule.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.cs.utwente.nl!newsgate.cistron.nl!newsfeed.equant.nl!newsfeed.equant.nl!surfnet.nl!news.mailgate.org!skynet.be!skynet.be!louie!not-for-mail
References: <3CA97AE1.827CA841@pandora.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,40ca3402c789e17
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-04-02 08:15:34 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.cs.utwente.nl!newsgate.cistron.nl!newsfeed.equant.nl!newsfeed.equant.nl!surfnet.nl!news.mailgate.org!skynet.be!skynet.be!louie!not-for-mail
Sender: - <bvh@ns1.irule.be>
From: Bart.Vanhauwaert@nowhere.be
Subject: Re: ??
Newsgroups: be.comp.programming
References: <3CA97AE1.827CA841@pandora.be>
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.2.17-21mdksecure (i686))
Date: Tue, 2 Apr 2002 16:42:14 +0200
Message-ID: <60gc8a.jqr.ln@ns1.irule.be>
Lines: 38
NNTP-Posting-Host: 194.78.202.248
X-Trace: 1017764028 reader1.news.skynet.be 29681 194.78.202.248
X-Complaints-To: abuse@skynet.be