Welcome, Guest. Please login or register.

Author Topic: iostream.o probs (cout & cin)  (Read 1504 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline jaokimTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 205
    • Show all replies
iostream.o probs (cout & cin)
« on: October 25, 2003, 11:25:32 AM »
When trying to compile a C++-prog with cout and cin, the compiler complains of an undefined reference to cout when linking my prog.
So, the question is. Where can these be found? Is there an env-variabel to set for this to be found?

On the miggy I'm using geekgadgets.
On my linux machine there's debian running (AOne).
They both produce the exact same error, which actually is rather funny.

The error:
gcc test.cpp -o test
 /tmp/ccdPTEKu.o(.text+0x26): In function `main':
: undefined reference to `cout'
and so on...

So, on miggy-side: What package, and what env to set?
And on debian: apt-get install what?
 

Offline jaokimTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 205
    • Show all replies
Re: iostream.o probs (cout & cin)
« Reply #1 on: October 25, 2003, 11:31:17 AM »
Yep! That's it, I was just trying to delete my embarrassing post when I found the answer myself...  :oops:

It's not easy solving problems when it's late, tried it last night, just to see if the compiler worked, and well, it didn't...