Mail Archives: djgpp/1995/05/02/15:11:10
Date: Mon, 1 May 95 23:31:04 PDT
From: hshaw AT mars DOT calstatela DOT edu (E.I.T.)
hello all..im getting the follow errors while trying to compile this
simple piece of code....
reit.cc(.text+0x5e):undefined reference to `cout`
`ostream::operator<<(char const *)
`endl(ostream &)`
Then it start to repeat...the follow peice of code produces this...
#include <iostream.h>
void main()
{
char *s = "hi there! \n";
cout << s;
char *p = "The backlash character \\.";
cout << p << endl;
char *q = "the double quotation mark \". \n";
cout << q;
}
My question is WHY? This should work..im using a boot disk to load no TSR's
nor memory stuff and i have the path variable pointing to c:\djgpp\bin
pls the go32 varible point to the place described in the faq and the readme's
I tried to run this on a SUN sparc.. and i get " iostream file npot found"
now i have compiled programs on this machine many times..
Can someone tell me whats im doing wrong with this program?
Thanks...
I compiled and ran this on DG which uses USL Cfront and GCC and it compiles and
runs fine.
--
Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com
- Raw text -