From: wto@cbnewsg.cb.att.com (William T. O Connell) Subject: Re: Compilation errors in g++ in the TAMU linux package Date: Tue, 16 Feb 1993 01:12:33 GMT
In article <1lotlvINN9c8@senator-bedfellow.MIT.EDU> martin@sandi.spelman.auc.edu (Benjamin J. Martin) writes:
>When compiling a c++ program the following message comes back:
>
>test.o: Undefined symbol _cout referenced from text segment
>test.o: Undefined symbol operator<<(ostream &, const char *) referenced from
>text segment
>
>This error comes from the linker/loader apparently. The question is: do I
>need to get the sources and recompile to get the right libraries in the right
>order, or is there a simpler way around this problem?
Use the -nojump option when compiling, the iostream stuff is not in the
jump tables.
- Bill