Click to See Complete Forum and Search --> : Linux terminal problem? Please help..


ck_VT
09-13-2001, 06:10 PM
I'm new to linux, but I have to use it for a C++ class I'm taking in college. I used emacs to write a basic "Hello world!" program, and I made a make file to compile the hello program. As far as I can see, it compiles fine (using command line g++ -Wall -g -o hello hello.cc in the makefile); however, whenever I type hello in the terminal, it says hello: Command not found. The hello program shows up as executable when I type ls -l, and an icon for the program is there in my directory. Whenever I double click the icon, nothing happens.

Can anyone help me? I don't understand what could be wrong..

error27
09-13-2001, 07:48 PM
type: ./hello (hello is not in your $PATH)
or put an ENDL on your:
cout << "hello world" << ENDL;
right click on the icon and select to execute in a shell? I'm not sure because I don't use gnome much.

ck_VT
09-13-2001, 10:00 PM
./hello worked! Thanks, I really appreciate it. :)