Author Topic: Compiles but strangely doesn't run  (Read 3709 times)

Offline rohith

  • Multiple posting newcomer
  • *
  • Posts: 11
Compiles but strangely doesn't run
« 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Compiles but strangely doesn't run
« Reply #1 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.

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Compiles but strangely doesn't run
« Reply #2 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.
« Last Edit: January 15, 2010, 12:13:31 pm by Folco »
Kernel Extremist - PedroM power ©

Offline rohith

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Compiles but strangely doesn't run
« Reply #3 on: January 16, 2010, 04:15:59 am »
Thanks both of you - folco and jens.