delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/07/17:32:01

Xref: news2.mv.net comp.os.msdos.djgpp:8386
From: Stuart Zussman <szussman AT pacbell DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: iostream.h and djgpp.env
Date: Sat, 07 Sep 1996 13:00:23 -0700
Organization: A customer of Pacific Bell Internet Services
Lines: 175
Message-ID: <3231D457.125@pacbell.net>
Reply-To: szussman AT pacbell DOT net
NNTP-Posting-Host: ppp-206-170-5-191.rdcy01.pacbell.net
Mime-Version: 1.0
CC: szussman AT pacbell DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I hope you can help.  As I am sure you have seen many times before, I am
a new user trying to get djgpp going and having trouble with the
compiler not finding iostream.h.  All the gory details are below.

I subsequently tried to force my program to find iostream.h by doing 
include "c:\djgpp\lang\cxx\iostream.h"
in the header of the source code.  The compiler then found iostream.h,
but got an error trying to find streambu.h, which I suspect could be a
DOS 8+3 naming problem.  Anyway, it was clear to me from this that my
iostream.h file is there.  Clearly there has to be a better solution
that "hard-coding" all the exact locations of the libraries in every
program, though.

I also tried to use the FAQ and searchable mail archives (great
resource, by the way!) , finding some very relevant tips.  Here are my
responses to questions that were posed in one such mailing.
(1)  Did you put all your djgpp stuff in the C:\DJGPP\ directory?
-->Yes
(2)  Have you have all the files in the readme.1st file?  Iostream
library is in a different zip file from which G++ is included.
-->Yes, I have c:\djgpp\lang\cxx\iostream.h
(3)  Have you unziped all the files in the djgpp directory and with the
-d switch if you are using pkunzip?  Or have you mkdir the directories
your self?
--> I used winzip95 which created the directory structure for me
(4)  Did you modify your djgpp.env file?  If yes, posted here and let
me see.
-->No I didn't modify it, but I've attached it below.

I also tried playing with the capitalization of iostream.h (versus
IOSTREAM.H) in the source code to no avail.  A desparation move, which
prompted me to write to you.

Thanks!  I really appreciate that you provide this kind assistance to
struggling amateurs like me!
  
Stuart Zussman
szussman AT pacbell DOT net


C:\>type config.sys
--------------------------
[COMMON]
BUFFERS=20
FILES=40
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS I=E000-EFFF X=F000-FEFF
DOS=HIGH,UMB
DEVICEHIGH=C:\WINDOWS\COMMAND\IBMIDECD.SYS /D:IBMCD001
DEVICEHIGH=C:\MWW\MANAGER\VHD50420.EXE

C:\>type autoexec.bat
-----------------------------
@ECHO OFF
C:\IBMTOOLS\RESUME.EXE
C:\IBMTOOLS\IBMPFILE.EXE
C:\IBMAV95\IBMAVSH /F00
PATH C:\MWW\DLL;C:\IBMTOOLS
LH DOSKEY
SET MWROOT=C:\MWW
SET LIBPATH=C:\MWW\DLL
SET MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
set DJGPP=C:\DJGPP\DJGPP.ENV
set PATH=C:\DJGPP\BIN;%PATH%
REM The following is used by DOS games to recognize Sound Blaster
hardware.
REM If hardware settings are changed, please change this line as well.
REM See the Mwave README file for instructions.
SET BLASTER=A220 I5 D1
REM
REM
REM

contents of c:\djgpp\djgpp.env
-----------------------------------------
#= Don't edit this line unless you move djgpp.env outside
#= of the djgpp installation directory.  If you do move
#= it, set DJDIR to the directory you installed DJGPP in.
#=
DJDIR=%:/>DJGPP%

+USER=dosuser
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+LFN=n

[bison]
BISON_HAIRY=%DJDIR%/lib/bison.hai
BISON_SIMPLE=%DJDIR%/lib/bison.sim

[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%DJDIR%/contrib/grx20/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/include
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc

[gcc]
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib

[info]
INFOPATH=%/>;INFOPATH%%DJDIR%/info


D:\djgpp>set
-----------------
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
MWROOT=C:\MWW
LIBPATH=C:\MWW\DLL
MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
DJGPP=C:\DJGPP\DJGPP.ENV
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\MWW\DLL;C:\IBMTOOLS
windir=C:\WINDOWS
BLASTER=A220 I5 D1

Invoke the `go32-v2' program
--------------------------------------- 
go32/v2 version 2.0 built Jan 23 1996 22:03:02
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.
DPMI memory available: 22248 Kb
DPMI swap space available: 23908 Kb

D:\djgpp\bin>type environ.lst
----------------------------------------
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
MWROOT=C:\MWW
LIBPATH=C:\MWW\DLL
MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
DJGPP=C:\DJGPP\DJGPP.ENV
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\MWW\DLL;C:\IBMTOOLS
windir=C:\WINDOWS
BLASTER=A220 I5 D1
CMDLINE=gcc -v g -o slz11 slz11.c -lgpp -lgpl -lm

D:\djgpp\bin>gcc -v g -o slz11 slz11.c -lgpp -lgpl -lm
---------------------------------------------------------------------
gcc.exe: g: No such file or directory (ENOENT)
gcc version 2.7.2
 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386
-DGO32 -DMS
DOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386
-D__GO32 -D__
MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) slz11.c
C:\WIND
OWS\TEMP\ccbaaaaa
GNU CPP version 2.7.2 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.7.2/include
 /usr/include
End of search list.
slz11.c:1: IOSTREAM.H: No such file or directory (ENOENT)


D:\djgpp\bin>type slz11.c
----------------------------------
#include <IOSTREAM.H>
void main()
{
   cout << "Hello - this is a test";
}

- Raw text -


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