//this is the code
Code:
#include <iostream>
int main()
{
std::cout<<"testing";
return 0;
}
//compile line = gcc recreate.cpp
//this is the errors
Code:
/tmp/ccmpnhEB.o: In function `__static_initialization_and_destruction_0(int, int)':
recreate.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()'
/tmp/ccmpnhEB.o: In function `__tcf_0':
recreate.cpp:(.text+0x66): undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccmpnhEB.o: In function `main':
recreate.cpp:(.text+0x76): undefined reference to `std::cout'
recreate.cpp:(.text+0x7b): 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/ccmpnhEB.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status