Code::Blocks Forums

User forums => Help => Topic started by: virtuosonic on March 10, 2009, 09:51:35 am

Title: "hello world" doesn't run
Post by: virtuosonic on March 10, 2009, 09:51:35 am
hi!
i'm switching from XP to fedora and i installed Code::Blocks, then i created a new project, a console program, for testing that things work and it compiles and links right, when i run it this apears in the build log:

Quote
Checking for existence: /home/virtuoso/Documentos/hello/bin/Debug/hello
Executing: xterm -T hello -e /usr/bin/cb_console_runner /home/virtuoso/Documentos/hello/bin/Debug/hello  (in /home/virtuoso/Documentos/hello/.)
Process terminated with status 255 (0 minutes, 0 seconds)

i'm using codeblocks 8.02 build sep 22 08 2:34:14 wx2.8.8 Linux Unicode, runing under fedora 10 with gcc versiĆ³n 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)

thanks for your help
 
Title: Re: "hello world" doesn't run
Post by: Jenna on March 10, 2009, 10:47:51 am
You most likely have no xterm installed.

Just install it or use another console emulator ("Settings -> Environment... -> Terminal to launch console programs:").
In the second case you might have to adjust the parameters in the settings to work properly.
Title: Re: "hello world" doesn't run
Post by: virtuosonic on March 10, 2009, 11:22:29 am
oh!!!  :?

thanks, that must be because i write xterm in the terminal, and it say "comand not found", another question, i don't need that thing (xterm) for creating wxApp's?
Title: Re: "hello world" doesn't run
Post by: JGM on March 12, 2009, 07:03:47 pm
no, unless you are debugging the application on console mode.
Title: Re: "hello world" doesn't run
Post by: kfmfe04 on June 25, 2009, 08:50:10 am
You most likely have no xterm installed.

Just install it or use another console emulator ("Settings -> Environment... -> Terminal to launch console programs:").
In the second case you might have to adjust the parameters in the settings to work properly.

Thank you!  I had exactly the same problem on Ubuntu amd64... 
A quick:

sudo apt-get install xterm

did the trick!