delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/07/18:39:31

Mailer: WinNET Mail, v2.04
Reply-To: Sheridan West <sjwest AT wugawoo DOT win-uk DOT net>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Mon, 07 Mar 1994 22:56:57
Subject: Re: iostreams hello.cc
From: Sheridan West <sjwest AT wugawoo DOT win-uk DOT net>

 
 Thanks all of your tips - my archive site uploaded it after id
copied all the files that i thought i required - argh.

It refuses to complie my hello program
- i also implemented the patch to level3
Ive dumped the complier output code and env settings 

Code

#include<iostream.h>
#include<ostream.h> // added to no avail
#include<istream.h> //

main() // also have tried int 
{
cout << "Hello World";
}

Complier output

d:/gnu/cplusinc
 d:/gnu/include
 /usr/local/lib/g++-include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.5.7/include
 /usr/include
End of search list.
 d:/gnu/bin/cc1plus.exe d:/gnu/tmp/cc007079 -fno-builtin -quiet -dumpbase hi.cc
-version -o d:/gnu/tmp/cca07079
GNU C++ version 2.5.7 (80386, BSD syntax) compiled by GNU C version 2.5.7.
hi.cc:6: warning: return type for `main' changed to integer type
 d:/gnu/bin/as.exe -o d:/gnu/tmp/ccb07079 d:/gnu/tmp/cca07079
 d:/gnu/bin/ld.exe -o hi d:/gnu/lib/crt0.o -Ld:/gnu/lib d:/gnu/tmp/ccb07079 -lgc
c -lc -lgcc
hi.cc(.text+9): undefined reference to `ws(istream &)'
hi.cc(.text+3a): undefined reference to `cout'
hi.cc(.text+3f): undefined reference to `ostream::operator<<(const char *)'

Running the program

go32 version 1.11.maint3 Copyright (C) 1993 DJ Delorie
Can't open file <hi>

Env Settings

LOADHIDATA=C:\QEMM\LOADHI.RF
PROMPT=$P$G
COMSPEC=C:\OS\COMMAND.COM (version 6.2)
TEMP=c:\junk
TMP=c:\junk
GMKW5=c:\win\gmkw
PATH=C:\OS;C:\WIN;C:\ZIP;C:\ODAPI;D:\GNU\BIN;C:\STAC;
BISON_HAIRY=d:/gnu/lib/bison.hairy
BISON_SIMPLE=d:/gnu/lib/bison.simple
FLEX_SKELETON=d:/gnu/lib/flex.skeleton
COMPILER_PATH=d:/gnu/bin
C_INCLUDE_PATH=d:/gnu/include
CPLUS_INCLUDE_PATH=d:/gnu/cplusinc;d:/gnu/include
OBJC_INCLUDE_PATH=d:/gnu/include;d:/gnu/include/objc
OBJCPLUS_INCLUDE_PATH=d:/gnu/include;d:/gnu/include/objc
LIBRARY_PATH=d:/gnu/lib
INFOPATH=d:/gnu/docs;d:/gnu/docs/djgpp
TMPDIR=d:/gnu/tmp
GO32TMP=d:/gnu/tmp
GCCBIN=d:/gnu/bin
GCINC=d:/gnu/include;d:/gnu/cplusinc
GCCLIB=d:/gnu/lib
GCCTMP=c:/temp
windir=C:\WIN


- Raw text -


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