Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: jaokim on October 25, 2003, 11:25:32 AM

Title: iostream.o probs (cout & cin)
Post by: jaokim 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?
Title: Re: iostream.o probs (cout & cin)
Post by: Kronos on October 25, 2003, 11:28:33 AM
Never used streams myself,  but useing "g++" instead of "gcc" might help
(it will definitly do no harm  ;-)  )
Title: Re: iostream.o probs (cout & cin)
Post by: jaokim 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...