i dont know anything about kdevelop, i use the console myself but iostream.h is very depreciated and should be replaced with iostream. in iostream everything is declared under the std namespace. main should always return something, it is not void. so you need to do
Code:
#include <iostream>
int main() {
std::cout << "hi" << std::endl;
return 0;
}
or
Code:
#include <iostream>
using namespace std;
int main() {
cout << "hi" << endl;
return 0;
}
if you still get errors then the problem is with kdevelop and/or gcc so i suggest you post the errors that you are getting.