Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: henning1111 on May 03, 2015, 06:09:24 pm

Title: Error: The procedure entry point __gxx_personality_v0 could not be located...
Post by: henning1111 on May 03, 2015, 06:09:24 pm
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
Title: Re: Error: The procedure entry point __gxx_personality_v0 could not be located...
Post by: oBFusCATed on May 03, 2015, 07:33:57 pm
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
Title: Re: Error: The procedure entry point __gxx_personality_v0 could not be located...
Post by: MortenMacFly on May 03, 2015, 07:59:22 pm
Another reason might be that you mix dwarf code with sjlj. Stick with one compiler type for both: The library and your app.
Title: Re: Error: The procedure entry point __gxx_personality_v0 could not be located...
Post by: henning1111 on May 03, 2015, 08:26:35 pm
Thanks! I checked the compiler setup and it looks like this:

(http://i.imgur.com/fILfZps.jpg).

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