User forums > Help

cb_console_runner.exe Process terminated with status -1073741510

<< < (2/2)

oBFusCATed:
Obviously you have many compilers installed and some of them are on the PATH and some of them aren't.
You have to fix this or at least copy the required and correct libstdc++.dll in the folder next to your executable.
Another option is to link statically to libstc++, but I don't know how this is done on windows. You'll have to inspect the documentation of the compiler.

pabristow:
depends says (among other things)

Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.

So I'll try  to resolve all these items, and the PATHs to all compilers.

And try to link statically perhaps.

Thanks so far. Paul

pabristow:
I have added libgcc_s_seh-1.dll and libstdc++-6.dll alongside hello.exe and it runs in a local command window (which is all I am trying to achieve) but dependency viewer still isn't entirely happy.

However isn't the point of the cb_console_runner to provide the necessary to run the console window?  It only  seems on exit that it is unhappy?

I also cannot see what I need to provide paths to all my compilers in PATH - isn't that what Codeblocks does for you when they are entered into the settings, compilers section?

So I think I will proceed to try to get some header-only Boost programs to run.

Thanks  Paul

stahta01:

--- Quote from: pabristow on May 05, 2016, 03:28:52 pm ---However isn't the point of the cb_console_runner to provide the necessary to run the console window?  It only  seems on exit that it is unhappy?

--- End quote ---

The main purpose of cb_console_runner is to run your program and pause it at the end.

The "Process terminated with status" has nothing to do with cb_console_runner; might have something to do with Code::Blocks.
But, the most likely cause is your code does NOT return a good value because of coding mistake or run-time error.
Neither of which is a valid topic for this site I suggest posting the code on a site like http://cboard.cprogramming.com/forum.php along with a build log; both in code tags and ask for help.

Edit: Re-skimmed the thread I missed anyone suggesting to make sure the working folder inside Code::Blocks is what you want it to be. That is one of the things that varies between CB and running it directly on the command line. Likely you program errors out because the working directory is NOT what you think it is.
 

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version