Author Topic: why do i get: "Process terminated with status 127 (0 minutes, 0 seconds)"???????  (Read 20630 times)

Offline monkeyboy199271

  • Single posting newcomer
  • *
  • Posts: 2
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....

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5235
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
not enough information about your problem, you should follow the FAQ.
FAQ - CodeBlocks
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline monkeyboy199271

  • Single posting newcomer
  • *
  • Posts: 2
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......

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
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

Offline simonrodan

  • Single posting newcomer
  • *
  • Posts: 6
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

« Last Edit: July 14, 2013, 05:00:39 am by simonrodan »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Google says 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: [Select]
g++ -v

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