News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Cannot run "Hello World"!

Started by Sugoi48, November 15, 2010, 06:07:39 AM

Previous topic - Next topic

Sugoi48

I recently installed Code::Blocks and was looking forwards to using it, but when I tried to run my code (whether valid or not) I encountered status 127. I tried this with the first four default compilers, same results. Any ideas? Thank you!

ollydbg

Quote from: Sugoi48 on November 15, 2010, 06:07:39 AM
I recently installed Code::Blocks and was looking forwards to using it, but when I tried to run my code (whether valid or not) I encountered status 127. I tried this with the first four default compilers, same results. Any ideas? Thank you!

No information in your post!!!

You said:
QuoteI tried to run my code

How did you do this?
What is the exact steps.
Your OS? Version? Compiler?

You should describe all the them, other wise we can't help you.
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.

Jenna

If you are on linux, this error occurs if you do not have xterm installed.

Sugoi48

Oops! I'm on Ubuntu 10.04 64 bit, on a MacBook Pro 5,3. I checked, and I have xterm installed.
Console App, C++, GNU GCC Compiler, type any code, Build and run, status 127.

xunxun

If you don't have "g++", the problem caused:

Compiling: /home/basta/Programs/HelloCodeBlocks.cpp
/bin/sh: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings

Could you show your Build log?
Regards,
xunxun

Sugoi48

Ok. This is is messed: Today, I do exactly the same thing, intending to give you guys a copy of the build log, but this time it works exactly as expected.  :o :D Thank you for your help!