www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/02/13:27:25

Date: Mon, 1 May 95 23:31:04 PDT
From: hshaw AT mars DOT calstatela DOT edu (E.I.T.)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: c++ probs

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 -


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