From: sparhawk AT eunet DOT at (Gerhard Gruber) Newsgroups: comp.os.msdos.djgpp Subject: Re: C++ Compilation Date: Fri, 21 Aug 1998 12:00:19 GMT Organization: EUnet Austria Lines: 29 Message-ID: <35e0363b.751837@news.Austria.EU.net> References: NNTP-Posting-Host: e248.dynamic.vienna.at.eu.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: 21 Aug 1998 12:01:46 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit Precedence: bulk Destination: HALBN AT COSMODYNE DOT com From: Gruber Gerhard Group: comp.os.msdos.djgpp Date: Thu, 20 Aug 1998 15:01:40 -0700: > I am using a WindowsNT OS. I recently downloaded DJGPP and >installed exactly as asked for. I have installed all the required files >for C as well as C++. When I run a C program in the DOS window inside >WindowsNT, the compiler does everything perfectly. But when I write a >C++ program (with the right extension .cc or .cpp, and compile the right >way), the compiler does not recognize any C++ functions like cin, cout, >endl etc. It does not recognize files like "iostream.h" also (it >recognizes "stdio.h" only). > I have set the environment variables correctly also, and all the >files (like "iostream.h" etc) are there. On encountering cin, cout etc >the compiler says "undeclared function" or "undeclared operator". Did you set LFN=n in the djgepp.env file? Long filenames don't work under NT and this might be your problem. -- Bye, Gerhard email: sparhawk AT eunet DOT at g DOT gruber AT sis DOT co DOT at Spelling corrections are appreciated.