Code::Blocks Forums

User forums => Help => Topic started by: rohith on January 15, 2010, 11:25:30 am

Title: Compiles but strangely doesn't run
Post by: rohith on January 15, 2010, 11:25:30 am
Hi. I have installed codeblocks on Fedora 12. I wrote a simple program to print out hello. The program compiled without any errors but no output was shown when the program was run. The name of the file is Hello and it is located at /home/Rohith/c++/Hello. Instead, the following message was displayed:

Checking for existence: /home/Rohith/c++/Hello
Executing:xterm -T '/home/Rohith/c++/Hello' -e /usr/bin/cb_console_runner "/home/Rohith/c++/Hello"  (in /home/Rohith/c++/Hello)


Any help would be highly appreciated.
Title: Re: Compiles but strangely doesn't run
Post by: Jenna on January 15, 2010, 11:48:34 am
Do you have the  xterm-package installed, otherwise you either have to install it or use another terminal-emulator in "Settings -> Environment... -> General settings -> Terminal to launch console programs:".
Not all terminal-emulators can be use, because of different commandline syntax.
Title: Re: Compiles but strangely doesn't run
Post by: Folco on January 15, 2010, 11:58:23 am
Quote
[folco@Weygand ~]$ rpm -q xterm
xterm-248-2.fc12.x86_64
I confirm that with Fedora 12, it works fine when this package is installed.

But if you're using KDE, you can use <konsole -e> instead of XTerm, it works fine too.
Title: Re: Compiles but strangely doesn't run
Post by: rohith on January 16, 2010, 04:15:59 am
Thanks both of you - folco and jens.