C++运行程序提示“无法定位程序输入点__gxx_personality_v0de”

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/soulwyb/article/details/85112068

今天我C++学习到string类 跟着案例敲一遍,编译没问题。运行的时候提示:

无法定位程序输入点__gxx_personality_vo于动态链接库XXX上。百思不得其解。只能请求度娘了 最后找到这篇文章:

https://blog.csdn.net/lushuchengsky/article/details/78002565

不想看过程的话就直接看解决办法吧:

1.使用-static 编译[g++ -static file.cpp]

2.删除掉其他含有libstdc++-6.dll 的PATH环境变量,只留下mingw的

3.将 libstdc++-6.dll 文件与代码放置同一文件编译

4.将 libstdc++-6.dll 文件放到System32或SysWOW64文件夹下。(我用这个办法。理由是简单方便。一劳永逸)
 

扫描二维码关注公众号,回复: 4928969 查看本文章

猜你喜欢

转载自blog.csdn.net/soulwyb/article/details/85112068
今日推荐