Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: monkeyboy199271 on August 09, 2010, 03:59:36 am

Title: why do i get: "Process terminated with status 127 (0 minutes, 0 seconds)"???????
Post by: monkeyboy199271 on August 09, 2010, 03:59:36 am
I just downloaded the program, and i am trying to learn the language, i typed a simple program, that i know should work, but, when i tried the build the program, the message i get is:

Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings"

So, can anyone out there help me, PLEASE?
Thanks in advance....
Title: Re: why do i get: "Process terminated with status 127 (0 minutes, 0 seconds)"???????
Post by: ollydbg on August 09, 2010, 04:58:46 am
not enough information about your problem, you should follow the FAQ.
FAQ - CodeBlocks (http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F)
Title: Re: why do i get: "Process terminated with status 127 (0 minutes, 0 seconds)"???????
Post by: monkeyboy199271 on August 09, 2010, 05:46:24 am
well, whenever i try to build the project i get the error message...
Compiling: main.cpp
/bin/sh: g++: command not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings

sorry, but i don't think i can be any more specific than that......
Title: Re: why do i get: "Process terminated with status 127 (0 minutes, 0 seconds)"???????
Post by: Jenna on August 09, 2010, 06:51:07 am
You should learn to read (and understand) compiler messages.

And of course you can be more specific: always post your C::B version, your OS (and version) and compiler (and version) if you run in such troubles.
Do you think we have the second sight ?

In your case you will (most likely) not be able to give us the g++ version, because you did not install a c++-compiler.

The compiler-message is clear:
/bin/sh: g++: command not found
Title: Re: why do i get: "Process terminated with status 127 (0 minutes, 0 seconds)"???????
Post by: simonrodan on July 14, 2013, 04:35:32 am
I have run into a similar issue and would appreciate some help:


-------------- Build: Debug in devtime ---------------

Compiling: main.cpp
/bin/bash: g++ -Wall -fexceptions  -g  -fopenmp -Wno-return-type  -Wno-deprecated   -I/home/simon/workspace/srlib/include  -c /home/simon/workspace/devtime/main.cpp -o obj/Debug/main.o: No such file or directory
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
Both /home/simon/workspace/srlib/include and /home/simon/workspace/devtime/main.cpp exist. g++ is where it's supposed to be in /usr/bin

The IDE has been working fine until for several years - until today. 

OS is Ubuntu 12.04, 64 bit.
Codeblocks is 12.05 Build May 11
Compiler is g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Title: Re: why do i get: "Process terminated with status 127 (0 minutes, 0 seconds)"???????
Post by: stahta01 on July 14, 2013, 05:04:01 am
Google says http://tldp.org/LDP/abs/html/exitcodes.html (http://tldp.org/LDP/abs/html/exitcodes.html)

Quote
"command not found"

Verify g++ is installed!

The below command on command line should do it.
Code
g++ -v

Tim S.