I am new to programming and trying to learn C++ using C++ Primer (5th ed.). I have written this code that is directly from the book. The issue is when trying to execute the .exe results with this prompt popping up
The procedure entry point _ZNKSt9basic_ioslcSt11char_traitslcEEcvbEv could not be located in the dll
The .cpp
#include <iostream>
main ()
{
int sum = 0, val = 0;
while (std::cin >> val)
sum += val;
std::cout << "The sum is: "<< sum << std::endl;
return 0;
}