简体   繁体   中英

Getting linking error in mingw c++

在此处输入图片说明

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++. 修改后的截图;错误已更改

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM