_Gxx_Personality_v0 error with Codeblocks

浪子不回头ぞ 提交于 2019-12-11 08:28:47

问题


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

This is a picture of the current setting I am using. I am using g++ and NOT gcc:

Note:

  1. I have added the path of MinGW to PATH (environment variables).
  2. Getting this error since I downloaded QT SDK & visual studio 2010 which comes with its own Mingw & VC with its own compiler.
  3. Reinstalled both Code::blocks and MinGW several times.
  4. Both my path and system variables are set to point to my installation location of MinGW's bin directory.
  5. I am also using Visual Studio 2012.

How do I resolve this error? I want to use all: Code::blocks, Qt, and Visual studio 2012.


回答1:


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.

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-bit targets;
  • 32-bit targets;
  • Win32 threads;
  • POSIX threads;
  • SEH exceptions;
  • DWARF exceptions;
  • SJLJ exceptions.

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.




回答2:


maybe you should try copying libstdc++-6.dll from your MinGW\bin into mingw\bin inside codeblocks folder and replace the one that exists in there. It worked for me.



来源:https://stackoverflow.com/questions/16149499/gxx-personality-v0-error-with-codeblocks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!