Mail Archives: djgpp/1998/04/30/16:15:35
From: | ed toivanen <e_toivanen AT bc DOT sympatico DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Install/compile woes. W95, Djjgpp v2
|
Date: | Thu, 30 Apr 1998 13:08:52 -0700
|
Organization: | BCTEL Advanced Communications
|
Lines: | 24
|
Message-ID: | <3548DA54.17DC19AC@bc.sympatico.ca>
|
NNTP-Posting-Host: | m84.bctel.ca
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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 *)".
Any ideas?
Thanks, in advance, Ed
- Raw text -