Hi,
i installed CodeBlocks Build Apr. 22 2008 on Ubuntu 7.10,because i think CodeBlocks is a nice,small IDE.
However,when i want to build and run a new console application, i always get the following error:
"Process terminated with status 255 (0 minutes, 0 seconds)".
I am sure,that there is no syntax error,because i build and run the sourcecode which is generated when i create a new console application....
I am using the Gnu GCC Compiler.
Any ideas?
Thanks!
Greetings from Austria
Bernhard
Hey, this is great. I'm not the only one with this error! 8)
My thread is here: http://forums.next.codeblocks.org/index.php/topic,8274.0.html
Except I'm using Visual C++ compiler.
Yes, if there are any developers of CodeBlocks here offering support (concept!), we'd love to know what this means. Thanks!
Please provide a minimal sample project and a step-by-step instruction how to reproduce. "Error 255" means nothing to me (at least) without source code.
Hi,
i did this:
1.) i created a new project ( File -->New-->Project-->console application)
2.) in the wizard i selected C++ and Gnu GCC Compiler
Then,a new project and a source file (main.cpp) is created.
The sourcefile contains the following source code:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
After pressing the F9 Button (Build and Run), i get the "Error 255".
Thanks!
Bernhard
Hi Bernhard,
do you have xterm installed ?
If not you get this message when running a console project from C::B.
The easiest solution would be to run
apt-get install xterm
as root or via sudo.
You can use any other terminal-emulator, but then you have to fix the instruction in the "Settings -> Environment... > Terminal to launch console programs:" textfield.
Hi Jens,
thank you very much - it worked!
Bernhard
thanks,I have fixed it as your idea ,too!
1) this thread is 5 years old...
2) 10.05 is 4 years old. There are a lot ppas out there where you can get a never version of c::b
3) http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F specially the FULL BUILD LOG is important
greetings
zinat: If you did a rebuild; then it means you have no source code files in the project.
Tim S.
Quote from: zinat on March 27, 2014, 06:36:35 PM
So Sir what's the solution for it..
Add a file to your project!!!
Tim S.
No add some .c or .cpp files to you project.
zinat: Please read the FAQ this time.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
QuoteThings to remember:
Look at the "Build Log" NOT the "Build Message" tab
Do a re-build instead of build in order to get a full build log.
If you think you did it right attach a zipped cbp file to your post.
HINT: Rebuild means doing "Build" -> "rebuild" instead of run!!!!
Tim S.
Quote from: zinat on March 28, 2014, 07:33:14 AM
Sir i am attaching my project below..
Post the full build log.
READ THE DIRECTION I POSTED ABOVE!!!
You do realize that you need to enable two copies of CB to run to test run a CB plugin.
Tim S.
I gave you all the help I can.
I suggest never posting in someone else thread!!!
You hijacked a unrelated thread.
You will likely NOT get a linux dev to help you in this thread.
I have no idea what non-windows user need to do to test a CB plugin.
I suggest reading what the people post instead of ignoring it in the future.