【问题标题】:Getting __gxx_personality_v0 error after compiling C++ with g++ on Windows在 Windows 上使用 g++ 编译 C++ 后出现 __gxx_personality_v0 错误
【发布时间】:2016-01-24 20:29:09
【问题描述】:

标题。

编译成功后:

#include <iostream>

class test
{
    public:
    int Render() {return 4;}
};

int main()
{
    test b;
    std::cout << b.Render() << std::endl;   
    return 0;
}

使用这个命令:

g++ .\src\test.cpp -lstdc++

生成的可执行文件会产生错误消息(如我正在翻译的那样解释):

Entry point for procedure __gxx_personality_v0 in library [path of executable] not found.

有什么建议吗?

【问题讨论】:

标签: c++ windows gcc g++ mingw


【解决方案1】:

答案:将 libstdc++6.dll 从 C:\mingw\bin 复制到可执行文件的文件夹中。

【讨论】:

    猜你喜欢
    • 2018-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-31
    • 1970-01-01
    • 2016-02-27
    • 1970-01-01
    • 2016-07-09
    相关资源
    最近更新 更多