im making first cpp program (using windows gcc compiler) but i got that error:
c:/users/oops9_wimj8q/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\OOPS9_~1\AppData\Local\Temp\ccL9PsTD.o:main.cpp:(.text+0x22): 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*)'
c:/users/oops9_wimj8q/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\OOPS9_~1\AppData\Local\Temp\ccL9PsTD.o:main.cpp:(.text+0x34): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
c:/users/oops9_wimj8q/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\OOPS9_~1\AppData\Local\Temp\ccL9PsTD.o:main.cpp:(.text+0x56): undefined reference to `std::ios_base::Init::~Init()'
c:/users/oops9_wimj8q/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\OOPS9_~1\AppData\Local\Temp\ccL9PsTD.o:main.cpp:(.text+0x89): undefined reference to `std::ios_base::Init::Init()'
c:/users/oops9_wimj8q/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\OOPS9_~1\AppData\Local\Temp\ccL9PsTD.o:main.cpp:(.rdata$.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_[.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_]+0x0): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
c:/users/oops9_wimj8q/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\OOPS9_~1\AppData\Local\Temp\ccL9PsTD.o:main.cpp:(.rdata$.refptr._ZSt4cout[.refptr._ZSt4cout]+0x0): undefined reference to `std::cout'
collect2.exe: error: ld returned 1 exit status
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
i dont know what i should try