Re: creating an executable
On Tuesday, May 14, 2002, at 08:37 PM, Justin News wrote:
To compile I use the commmand:
g++ -o hello hello.cpp
I do get a "hello" file with 755 permissions so everything looks fine.
However, when i try to run the program i get the error msg saying:
bash: hello: command not found
This is probably because your path does not include the current
directory, which is common practice in the interest of security.
Try:
./hello
instead.
[In the future, you'll probably be better served if you subscribe to
a general Unix programming newsgroup or mailing list for this sort
of questions. In fact, I'd be surprised if this isn't a FAQ on
comp.unix.programmer.]
Cheers.
--
To UNSUBSCRIBE, email to debian-laptop-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: