Subject: iostream problem?
To: None <current-users@NetBSD.ORG>
From: Johnny Chi-Lung Lam <>
List: current-users
Date: 12/13/1997 23:38:15
The following program fails to link on my Mac running NetBSD-1.3_BETA.

--- foo.c ---
#include <iostream.h>

        unsigned long foo = 12345678;
        cerr << hex << foo << endl;
        return 0;

I compiled with 'g++ foo.c'.  The error is:

	 Undefined symbol `_hex__FR3ios' referenced from text segment

but 'hex' is an inline function defined in iostream.h.

Can anyone explain this?  Thanks!
   Johnny C. Lam
   Department of Statistics       
   Carnegie Mellon University