问题
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:
- 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.
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