User Profile
Collapse
-
Dumb mistake on our part - forgot the using namespace std; -
Compile error when defining overloaded friend operator?
Hey I'm trying to compile a project for class (C++/linux) but I can't figure out what this g++ error means:
time.h:22: error: ISO C++ forbids declaration of 'istream' with no type
time.h:22: error: 'istream' is neither function nor member function; cannot be declared friend
time.h:22: error: expected ';' before '&' token
The code it's referencing is a public function definition:
...Code:#include <iostream>
No activity results to display
Show More
Leave a comment: