delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/02/19:04:45

Date: Thu, 2 Mar 1995 15:21:03 +0800
From: kimhy AT cs DOT ucsb DOT edu (Hyun J. Kim)
To: djgpp AT sun DOT soe DOT clarkson DOT edu

I tried to compile following simple c++ program on my machine, it gave me 
a whole bunch of error message.  The error messages were:
	undefined (something)    'cout'
	    "         "          'ostream::c....'
	    "         "          'cin'

I don't remember the exact error messages, but I hope this will be 
enought for someone to know.  I included my djgpp.env and autoexec.bat 
file.  Please, let me know if anyone knows what is wrong with my setup.  
Incidentally, I installed it off Simtel CDROM.  djgpp2.6.0.   Also, I 
tried to compile using comannd 'gcc -g -lm sample.cc'.

Thank you

Hyun
kimhy AT cs DOT ucsb DOT edu
--------------------------------------------------------------------

#include <iostream.h>
#include <math.h>
int main(void)
{
   double cover;
   cout<<"How many square feet of sheets do you have?\n";
   cin>>cover;
   double side;
   side = sqrt(cover);
   cout<<"You can cover a square with sides of " << side;
   cout<<" feet\nwith your sheets.\n";
   return 0;

}


DJDIR=%:/>DJGPP%

+TZ=EST5EDT
+USER=dosuser
+TMPDIR=%DJDIR%/tmp
+GO32TMP=%DJDIR%/tmp

[bison]
BISON_HAIRY=%DJDIR%/lib/bison.hairy
BISON_SIMPLE=%DJDIR%/lib/bison.simple

[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/cplusinc;%DJDIR%/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/include/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/include/objc

[flex]
FLEX_SKELETON=%DJDIR%/lib/flex.skeleton

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

[info]
INFOPATH=%/>;INFOPATH%%DJDIR%/docs;%DJDIR%/docs/djgpp
goto %config%

:Main
LH /L:1,55856 C:\WINOAK\OTIVESA.COM
C:\DOS\SHARE.EXE /l:500 /f:5100
LH /L:1,55600 C:\DOS\MSCDEX.EXE /D:MSCD001 /M:15
C:\DOS\SMARTDRV.EXE b+ c+ d /L
@ECHO OFF
PROMPT Noel Jr. $p$g
PATH C:\EMACS-19.19\BIN;C:\DJGPP\BIN;C:\TC\BIN;C:\UNIXUTIL;C:\TCWIN\BIN;C:\NORTON;C:\DOS;C:\QUICK_C\BIN;C:\WINDOWS;C:\PKZIP;C:\DASH;C:\PROWIN;C:\MOUSE;C:\TEMPRO
SET NU=C:\NORTON
SET DJGPP=C:\DJGPP\DJGPP.ENV
SET TMPDIR=C:\DJGPPTMP
SET GO32=DRIVER C:\DJGPP\DRIVERS\OAK.GRD GW 1024 GH 768
SET GO32TMP=C:\GO32TMP
MOUSE SER 2
SET TEMP=C:\DOS
alias ls dir
alias rm del
alias cp copy
alias mv move
alias gdb go32 -d gdb
goto end

:Second
@ECHO OFF
PROMPT Noel Jr. $p$g

SET DJGPP=C:\DJGPP\DJGPP.ENV
SET TMPDIR=C:\DJGPPTMP
SET GO32=DRIVER C:\DJGPP\DRIVERS\OAK.GRD GW 1024 GH 768
SET GO32TMP=C:\DJGPPTMP.32

PATH C:\DJGPP\BIN;C:\TC\BIN;C:\TCWIN\BIN;C:\NORTON;C:\DOS;C:\QUICK_C\BIN;C:\WINDOWS;C:\PKZIP;C:\DASH;C:\PROWIN;C:\MOUSE;C:\TEMPRO
LH /L:1,34816 MOUSE SER 2
set nu=c:\norton
alias ls dir
alias rm del
alias cp copy
alias mv move
alias gdb go32 -d gdb
goto end

:end

- Raw text -


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