Undefined reference to `std::cout'

You may get the error "undefined reference to `std::cout'" while compiling C++ program in Linux/Ubuntu. 
In order to resolve the error check:
  • Have you included the iostream header file in your program. If no then include "iostream" in the code. OR
  • Are you trying to compile c++ program using gcc command. You should compile C++ program using g++ such as: $ g++ test.cpp

Comments

Popular posts from this blog

How to boot Samsung Galaxy SL( GT-I9003) in recovery mode

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

How to Factory Reset or Hard Reset Samsung Galaxy SII ( GT-i9100)