When i try to compile my test program with this command:
Code:
gcc -o test test.cpp
I get this error thrown in my face:
Code:
In file included from /usr/include/c++/3.2.3/backward/iostream.h:31, from test.cpp:1: /usr/include/c++/3.2.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. test.cpp:8:2: warning: no newline at end of file /tmp/ccrlko53.o(.text+0x19): In function `main': : undefined reference to `std::cout' /tmp/ccrlko53.o(.text+0x1e): In function `main': : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' /tmp/ccrlko53.o(.text+0x4a): In function `__static_initialization_and_destruction_0(int, int)': : undefined reference to `std::ios_base::Init::Init[in-charge]()' /tmp/ccrlko53.o(.text+0x79): In function `__tcf_0': : undefined reference to `std::ios_base::Init::~Init [in-charge]()' /tmp/ccrlko53.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status
This is the test program that should be able to run:
Code:
#include <iostream.h>
int main()
{
cout << "heey";
return 0;
}