cout doesn't work!

Posted:
in Genius Bar edited January 2014
I'm trying to compile some very simple programs on the UNIX command line in Mac OS X, and it acts like cout doesn't exist.



These programs worked a week ago, and I think they may have been broken by the security update or something, but now when I try to re-compile them, I get errors like this:



[rvr057-80:~/programs/tests/calculus1] rogue% cc calc3.cc -o calc3

/usr/bin/ld: Undefined symbols:

ostream: :o perator<<(char const *)

ostream: :o perator<<(ostream &(*)(ostream &))

ostream: :o perator<<(double)

_cout

endl(ostream &)





I'm not happy about that, and this should work. I'm sorry if this is not the right place to ask a question like this, but if it's not, do you know where I should ask a question like this?

Comments

  • Reply 1 of 2
    dobbydobby Posts: 797member
    I had a similar problem and had to relink the objects under root.



    Omnigroup developer archives have a wealth of info.

    <a href="http://www.omnigroup.com"; target="_blank">www.omnigroup.com</a>

    This is where you are more likely to get a more qualified response (than from me).



    Dobby
  • Reply 2 of 2
    rogue27rogue27 Posts: 607member
    Thanks, I'll take a look, but do you remember how you did it?
Sign In or Register to comment.