www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/30/21:20:46

Mime-Version: 1.0
To: ed toivanen <e_toivanen AT bc DOT sympatico DOT ca>, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Install/compile woes. W95, Djjgpp v2
Date: Thu, 30 Apr 1998 16:46:38 -0700
Message-ID: <19980430234635.AAB20209@ppp119.cartsys.com>

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 <iostream.h>
>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



- Raw text -


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