delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/21/08:15:25

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: <E1415A0A3B1BD111AA2D00001B1996B510DABB AT mail DOT cosmodyne DOT com>
NNTP-Posting-Host: e248.dynamic.vienna.at.eu.net
Mime-Version: 1.0
NNTP-Posting-Date: 21 Aug 1998 12:01:46 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


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