Code::Blocks Forums

User forums => Help => Topic started by: freetype on January 11, 2013, 12:18:16 pm

Title: Can't run my program outside CodeBlocks
Post by: freetype on January 11, 2013, 12:18:16 pm
Hello, I'm using Codeblocks 12.11 on Windows XP since a few days after having used it with success on Linux. Trying to port my command line program I meet the following problem. The program compiles well with Mingw 4.7 and it runs perfectly as long as I remain in the Codeblocks environment, but when I try to launch it from a terminal I get the following error:

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

I suppose this might mean that I have several libstdc++-6.dll installed, but I don't know how to cope with this kind of problem, at least I'd like to know the execution command run by Codeblocks in order to fix this.

Thank you in advance for your help.
Title: Re: Can't run my program outside CodeBlocks
Post by: jarod42 on January 11, 2013, 01:21:41 pm
I would suggest to compare PATH inside and outside C::B
Title: Re: Can't run my program outside CodeBlocks
Post by: freetype on January 11, 2013, 04:39:19 pm
Right suggestion: PATH was not set at all in C::B it seems, but otherwise directed to several versions of libgcc_s_sjlj-1.dll and libstdc++-6.dll. Now that I cleaned it up it's OK.

Thanks
Title: Re: Can't run my program outside CodeBlocks
Post by: OldFangle on January 08, 2015, 06:05:22 am
Right suggestion: PATH was not set at all in C::B it seems, but otherwise directed to several versions of libgcc_s_sjlj-1.dll and libstdc++-6.dll. Now that I cleaned it up it's OK.

Hi
Where can I find directions and explanations about what you just said? 
I'm following directions on http://www.sfml-dev.org/tutorials/2.2/start-cb.php  and I'm getting the error message about libstdc++-6.dll as well.  I'm not managing to 'google' clear explanations about what entry points are, or what needs to be changed, added, updated, deleted...  I'm trying to find an introductory explanation of what this means and what needs to be done.
I think I'm following correct instructions on how to use SFML statically in Code::Blocks but I'm missing many points yet.
Thanks