_Gxx_Personality_v0错误与代码块 [英] _Gxx_Personality_v0 error with Codeblocks
问题描述
尝试使用MINGW& amp;来运行C ++程序时代码块出现以下错误:
While trying to run C++ programs with MINGW & CODEBLOCKS I am getting the following error:
The procedure entry point _gxx_persopnality _v0 could not be located in the dynamic link library libstdcc++-6.dll
这是我正在使用的当前设置的图片.我正在使用g++
而不是gcc
:
This is a picture of the current setting I am using. I am using g++
and NOT gcc
:
注意:
- 我已将MinGW的路径添加到
PATH
(环境变量). - 由于我下载了QT SDK& ;,因此收到此错误.视觉工作室2010,带有自己的Mingw&带有自己的编译器的VC.
- 多次安装了Code :: blocks和MinGW.
- 我的路径和系统变量都设置为指向我的MinGW
bin
目录的安装位置. - 我也在使用Visual Studio 2012.
- I have added the path of MinGW to
PATH
(environment variables). - Getting this error since I downloaded QT SDK & visual studio 2010 which comes with its own Mingw & VC with its own compiler.
- Reinstalled both Code::blocks and MinGW several times.
- Both my path and system variables are set to point to my installation location of MinGW's
bin
directory. - I am also using Visual Studio 2012.
如何解决此错误?我想使用所有代码:Code :: blocks,Qt和Visual Studio 2012.
How do I resolve this error? I want to use all: Code::blocks, Qt, and Visual studio 2012.
推荐答案
仅安装Visual Studio绝对不会导致此类错误.您的MinGW发行版仍然存在问题.我发现可疑的是库libstdcc++-6.dll
的名称.例如,在我基于GCC 4.7.2的MinGW-w64中,该库名为libstdc++-6.dll
,这是正确的名称,已经存在了很多年.
The installation of Visual Studio alone can in no way cause errors like that. Something is still wrong with your MinGW distribution. What I find suspicious is the name of the library libstdcc++-6.dll
. For instance, in my MinGW-w64 based on GCC 4.7.2 the library is named libstdc++-6.dll
, and that's the correct name, it was there for years.
我可以建议研究其他MinGW发行版.例如,您可以尝试 MinGW-w64 强>.它已经提供了最新的GCC 4.8.0.更重要的是,它提供了所有可能的变体:
What I can suggest is to look into some other MinGW distribution. For example, you could have tried MinGW-w64. It already offers the bleeding-edge GCC 4.8.0. What's more it offers all the possible variations:
- 64位目标;
- 32位目标;
- Win32线程;
- POSIX线程;
- SEH例外;
- DWARF例外;
- SJLJ例外.
因此您的选择非常灵活.要了解有关所有这些变体的更多信息(因为这是非常重要的知识),我鼓励您看一下
so your choice is quite flexible. To learn more about all these variations (as this is very important stuff to know) I encourage you to take a look at this article.
这篇关于_Gxx_Personality_v0错误与代码块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!