Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: ed toivanen , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Install/compile woes. W95, Djjgpp v2 Date: Thu, 30 Apr 1998 16:46:38 -0700 Message-ID: <19980430234635.AAB20209@ppp119.cartsys.com> Precedence: bulk At 01:08 4/30/1998 -0700, ed toivanen wrote: >Hi, > >I set the path to c:\djgpp\bin, and set DJGPP=c:\djgpp\djgpp.env. I can >compile C programs fine, but when doing a basic hello program in cpp, I >get error messages. > >#include >int main(void){ > > cout << "Hello." << endl; > > return (0); >} > >If lfn=n in djgpp.env, then the error "iostream.h:31 streambuf.h: No >such file or directory (ENOENT)" If lfn=y , then I get "main.cpp: >undefined reference to cout" and "main.cpp: undefined reference to >ostream::operator<<(char const *)". Read README.1ST. In essence, when compiling C++, use the `gxx' command instead of `gcc'. (Or is that `gpp'?) Nate Eldredge nate AT cartsys DOT com