Subject: iostream problem?
To: None <current-users@NetBSD.ORG>
From: Johnny Chi-Lung Lam <jlbg+@andrew.cmu.edu>
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>

int
main()
{
        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                 lamj@stat.cmu.edu
   Carnegie Mellon University               http://www.stat.cmu.edu/~lamj/

                                @>---`---,----