使用MinGW g ++无法在动态链接库中找到过程入口点

时间:2017-12-28 23:50:09

标签: c++ mingw

我正在尝试编写一个简单的C ++程序,它接受用户的名字并打印问候语:

#include <iostream>
#include <string>

int main()
{
    std::cout << "Please enter your first name: ";
    std::string name;
    std::cin >> name;
    std::cout << "Hello, " << name << "!\n";
    return 0;
}

使用MinGW的g ++编译顺利进行,但在运行时,我得到:

The procedure entry point _ZNSt7__cxx1112basic_stringlcSt11char_traitslcESalcEEC1Ev
could not be located in the dynamic link library (path to the executable)

我已经尝试重新安装g ++但无济于事。

0 个答案:

没有答案