I installed the regular c++ extensions in vscode: MS C/C++, C/C++ Extension pack and C/C++ runner. I can compile and run from the Linux command line but when I try to run it from VS code, it get
undefined reference to `std::basic_ostream<char, std::char_traits >& std::endl<char, std::char_tr…
The program is
#include <iostream>
int main() {
std::cout<<"hello"<<std::endl;
return 0;
}
How can I configure VS code to use the library, which is clearly present on my machine?