www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/20/18:06:21

From: HALBN AT COSMODYNE DOT com
Message-ID: <E1415A0A3B1BD111AA2D00001B1996B510DABB@mail.cosmodyne.com>
To: djgpp AT delorie DOT com
Subject: C++ Compilation
Date: Thu, 20 Aug 1998 15:01:40 -0700
MIME-Version: 1.0

Hi,

	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".




Here is the output of "set > environ.lst"..........
------------------------------------------------------------------------
------
acadserver=barcode
BACKIT=C:\BACKIT4
BKOUT=C:\BACKIT4
COMPUTERNAME=N-HALBHAVI
ComSpec=C:\WINNT\system32\cmd.exe
djgpp=c:\djgpp\djgpp.env
HOMEDRIVE=C:
HOMEPATH=\
LOGONSERVER=\\N-HALBHAVI
MSINPUT=C:\PROGRA~1\MICROS~1
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;c:\downloads;c:\djgpp\bin;c:\emacs-19.34
\bin;X:.;W:.;Z:.;Y:.;C:\BACKIT4
PATHEXT=.COM;.EXE;.BAT;.CMD
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 1 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0109
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\TEMP
TMP=C:\TEMP
USERDOMAIN=N-HALBHAVI
USERNAME=halbn
USERPROFILE=C:\WINNT\Profiles\halbn
windir=C:\WINNT
------------------------------------------------------------------------
----------------------------
Here is the output of go32-v2:
------------------------
go32/v2 version 2.0 built Aug 12 1996 22:27:23
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries
as
 well as v1 binaries (old makefiles).  Put ahead of the old go32 in your
PATH
 but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.

DPMI memory available: 11667 Kb
DPMI swap space available: 3693 Kb
---------------------------------

Here is the contents of my config.sys
------------------------------
STACKS=32,128
device=\bpcdrom\bpcddrv.sys /d:bpcddrv$
------------------------------
Here is the contents of my autoexec.bat
------------------------------
PATH=C:\BACKIT4
SET BACKIT=C:\BACKIT4
SET BKOUT=C:\BACKIT4
BKSCHED.COM
REM  IF EXIST BPCDDRV$ \BPCDROM\MSCDEX /D:BPCDDRV$
--------------------------------

The file djgpp.env is in the right place and I have never edited it. I
cant figure out what is wrong! Please help.


thanx
naveen halbhavi
halbn AT cosmodyne DOT com
310-320-5650 x 1314





- Raw text -


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