Mail Archives: djgpp/1998/04/30/21:20:46
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 -