Mail Archives: djgpp/1995/05/02/13:27:25
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...
- Raw text -