[This problem is showing when i am trying to compile my code in vs code]
I tried to solve this problem by editing json file but nothing works.
This is I am getting after compilation:
Executing task: C/C++: gcc.exe build active file
Starting build...
cmd /c chcp 65001>nul && C:\MinGW\bin\gcc.exe -fdiagnostics-color=always -g "C:\Users\akanksha yadav\Desktop\cppcodes\helloworld.cpp" -o "C:\Users\akanksha yadav\Desktop\cppcodes\helloworld.exe"
C:\Users\AKANKS~1\AppData\Local\Temp\ccW7k8xx.o: In function main': C:/Users/akanksha yadav/Desktop/cppcodes/helloworld.cpp:5: undefined reference to std::cout'
C:/Users/akanksha yadav/Desktop/cppcodes/helloworld.cpp:5: 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\AKANKS~1\AppData\Local\Temp\ccW7k8xx.o: In function _tcf_0':
c:/mingw/lib/gcc/mingw32/6.3.0/include/c++/iostream:74: undefined reference to std::ios_base::Init::~Init()' C:\Users\AKANKS~1\AppData\Local\Temp\ccW7k8xx.o: In function _static_initialization_and_destruction_0':
c:/mingw/lib/gcc/mingw32/6.3.0/include/c++/iostream:74: undefined reference to `std::ios_base::Init::Init()'
collect2.exe: error: ld returned 1 exit status
Build finished with error(s).
- The terminal process terminated with exit code: -1.
- Terminal will be reused by tasks, press any key to close it.