1

enter image description here

I have an error while running my c++ code using mingw in windows 10. The error is something like this : the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library ----a.exe

I have no idea how to resolve that. I tried to google it but i could not find any solution.

Edit 1: I noticed that programs in a particular folder are not working. For other folders it is working fine.

Edit 2: I reinstalled MingW. But I am getting the error whenever i am using string data type in c++. Modified screenshot; Error changed

  • See https://stackoverflow.com/questions/329059/what-is-gxx-personality-v0-for. One of the answers there says to use `g++` instead of `gcc`, although how `gcc` compiles C++ source at all is a mystery. – sashoalm Nov 03 '16 at 15:09
  • I am using g++ to compile and the solution is not provided in the link. – Maulik Solanki Nov 03 '16 at 15:20

1 Answers1

0

I think it might have something to do with different exception handling across your code and maybe some libraries that you use.
It may be caused by using different compiler (even different version of MinGW). Here is a nice explanation of differences between two:
What is difference between sjlj vs dwarf vs seh?
I remember having similar issue when using libraries compiled using different MinGW.

Community
  • 1
  • 1