title: The procedure entry point _ZNSt7_cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev could not be located in the dynamic link library
body: <p>I am having immense difficulty trying to use std::string. The program compiles absolutely fine, but when I run the program, I receive this error: <a href="https://i.stack.imgur.com/n3UN7.png" rel="nofollow noreferrer">error</a></p>
  
  <p>I have looked everywhere on google and haven't found a thing on how to solve this issue. I have also tried writing my code differently to see if that would tell me anything.</p>
  
  <pre><code>std::string yourName;
  std::cout &lt;&lt; "What is your name?";
  std::cin &gt;&gt; yourName;
  std::cout &lt;&lt; "Hello, " &lt;&lt; yourName &lt;&lt; std::endl;
  </code></pre>
  
  <p>Despite the rewrite, I am still getting the same exact error, and I am not forgetting to include the iostream and string header files.</p>
  
  <p>I am using the GCC compiler and my compile code is <strong>g++ -std=c++14 test.cpp -o test.exe</strong>. I have also tried using the compile code <strong>g++ test.cpp -o test.exe</strong>. This did not fix the error.</p>
  
  <p>I have asked this question before on Stack Overflow, but I failed to get a clear and understandable answer, most likely due to the fact that I am a complete beginner in programming. That being said, can someone please give me an answer on what might be causing this problem and how to fix it in <em>plain English</em>?</p>