Author Topic: console runner application unable to launch  (Read 6004 times)

Offline NutJobMcTavish

  • Single posting newcomer
  • *
  • Posts: 3
console runner application unable to launch
« on: December 01, 2016, 05:21:37 pm »
Hi Guys,
I am a total noob and having some difficulty getting 'Hello world' to run.

This is a fresh download and install of codeblocks 16.01 mingw on windows 10.
-Download and install runs fine.
-Codeblocks launches fine
-loaded up mainc just to test a compile and run i.e. Hello world.
-compile works fine
-when it comes to run I get a windows error saying console runner application unable to launch and a error code

-I have removed all of my antivirus and deactivated windows defender, then uninstalled and reinstalled (many variations of this)
-I have located the console runner app and tried compatibility tests.
-I have done settings, compiler, toolchain and auto located compiler. (looks ok to me)
-I have spent numerous hours searching the web and this site for anyone who has had the same problem, no luck apart from generic information on the web about windows error 00xc...142 cropping up, with free dll fixer downloads available to resolve - which I know could be dodgy and are too non specific.

Also, just tried an older version 15.12 just in case. Same problem but rather than a pop up window the error shows in build log as

Execution of '"C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Users\M\prog\c\BegC4D\ex0101\bin\Release\ex0101.exe" ' in 'C:\Users\M\prog\c\BegC4D\ex0101' failed.

I guess its going to be a really simple answer (when u know how) but I am a bit stuck, a bit frustrated, but still want to get this up and running as it looks like a cool set up for me to start learning C on.

Any assistance would be much appreciated.

Thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: console runner application unable to launch
« Reply #1 on: December 01, 2016, 05:31:31 pm »
Code
Execution of '"C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Users\M\prog\c\BegC4D\ex0101\bin\Release\ex0101.exe" ' in 'C:\Users\M\prog\c\BegC4D\ex0101' failed.

Does the file "C:\Users\M\prog\c\BegC4D\ex0101\bin\Release\ex0101.exe" exist?
If yes, try executing it from the command line.

From the cmd.exe prompt enter the below lines.
Code
cd /D C:\Users\M\prog\c\BegC4D\ex0101
C:\Users\M\prog\c\BegC4D\ex0101\bin\Release\ex0101.exe

Edit: If it does NOT work then, post the error message.

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline NutJobMcTavish

  • Single posting newcomer
  • *
  • Posts: 3
Re: console runner application unable to launch
« Reply #2 on: December 01, 2016, 06:25:15 pm »
Hi and thanks for your reply.
Yep ex0101 is the Hello world test and it works when run from cmd line as suggested.

I assume there are a few steps to go through to find out why cb_console_runner.exe is not launching?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: console runner application unable to launch
« Reply #3 on: December 01, 2016, 08:42:52 pm »
Hi and thanks for your reply.
Yep ex0101 is the Hello world test and it works when run from cmd line as suggested.

I assume there are a few steps to go through to find out why cb_console_runner.exe is not launching?

The normal cause is AntiVirus software; I have nothing else to suggest.
Maybe, some Windows 10 64 bit user can help you.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline NutJobMcTavish

  • Single posting newcomer
  • *
  • Posts: 3
Re: console runner application unable to launch
« Reply #4 on: December 03, 2016, 05:48:21 pm »
Hi Tim,
After a couple of days of trial and error, I just found a solution!

I decided to uninstall 'codeblocks 16.01 mingw' and instead install 'codeblocks 16.01' and the Mingw compiler separately to see if this would make any difference.
When attempting to install Mingw direct from Mingw.org website, I ran into a warning message advising that the root install directory should not include any 'white spaces' or Mingw will not work properly.
The default install directory for Code Blocks was, C:/Program Files (x86)/codeblocks, which MingW installer did not like due to the 'white spaces' in Program Files (x86)

So I went back to try again and reinstall the full 'codeblocks 16.01 mingw' , but this time I changed the default directory from C:/Program Files (x86) to a new folder with no spaces in its name e.g. C:/codeblocks, and hey presto! everything is now working fine compiling and running as it should.

Hope this proves useful!

NJM

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: console runner application unable to launch
« Reply #5 on: December 03, 2016, 06:12:40 pm »
That explains why I never saw the problem; I only have 32 bit version of Windows 10. So, I had no spaces in the path.

Edit: I will see if I can duplicate the problem on my Windows 7 64 bit laptop.

Tim S.
« Last Edit: December 03, 2016, 07:52:12 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org