help!!
i am using fedora...i hv installed gcc!
wen i compile i get error std::cin and cout not found! this command i hv used !yum install gcc-c++ is there any other thing i need to install?? |
Please post your source code and the command that you're using to compile it!
|
#include<iostream>
using namespace std; int main() { cout<<"hello\n"; return 0; } after compling i get error in fn maiin: undefined reference to 'std::cout' undefined reference to 'std::basic ostream |
Did you compiled it with a command like:
Code:
g++ main.cpp -o main.exe |
All times are GMT -5. The time now is 07:39 PM. |