在Windows上使用g ++编译C++后出现__gxx_personality_v0错误
Getting __gxx_personality_v0 error after compiling C++ with g++ on Windows
Title.
成功编译此程序后:
#include <iostream>
class test
{
public:
int Render() {return 4;}
};
int main()
{
test b;
std::cout << b.Render() << std::endl;
return 0;
}
使用此命令:
g++ .srctest.cpp -lstdc++
生成的可执行文件产生错误消息(在我翻译时解释):
Entry point for procedure __gxx_personality_v0 in library [path of executable] not found.
有什么建议吗?
答:将 libstdc++6.dll 从 C:\mingw\bin 复制到可执行文件的文件夹中。
相关文章:
- 没有找到相关文章