Author Topic: Error: The procedure entry point __gxx_personality_v0 could not be located...  (Read 13660 times)

Offline henning1111

  • Single posting newcomer
  • *
  • Posts: 2
Hi everyone,

I'm working on a Code::Blocks project involving OpenCV (v2.3.1). I ran into this error when starting the program:

The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll.

I tried both the Debug and Release configuration and copied all dll's from C:\Program Files (x86)\CodeBlocks\MinGW\bin into the exe directory of the program. There is no PATH variable pointing to another libstdc++-6.dll and there is no libstdc++-6.dll under C:\Windows\System32.

What am I missing? I would be super happy about anything that could point me in the right direction!!!

Thanks a lot!!
Henning

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
You're probably using gcc for linking c++ code. Change it to g++ and it will work.
This is done in the settings -> compiler -> toolchain executables
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Another reason might be that you mix dwarf code with sjlj. Stick with one compiler type for both: The library and your app.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline henning1111

  • Single posting newcomer
  • *
  • Posts: 2
Thanks! I checked the compiler setup and it looks like this:

.

I'm not sure about dwarf/sjlj but I'll look into that now.