I keep getting an error when I try to run any code with strings. When I tried running it through CMD, it gave an error window saying
The procedure entry point _ZNKSt7_cxx1112basic_stringlcSt11char_traitslcESalcEE6substrEjj could not be located in the dynamic library (code file directory)".
Here's the code:
#include <iostream>
#include <string>
int main()
{
std::string line1 = "Hello";
std::cout << line1 << std::endl;
}