Re: i m new to linux i have a problem in comling c++program using g+
On Fri, Feb 01, 2002 at 12:39:57AM +0500, Muhammad Humayun Khan wrote:
>
> Hi
> i am new to linux i am using debain
> i write a program in c++ using vi.
> named new1.cc
> then i log in as root and and run root/usr:/g++ -o new1 new1.cc
> it compiles and made "new1" but i try to run this file by writing .
> root/usr:/new1
> it show this msg
> bash:new1: command not found.
> tell me what i have to do.
> Thanks
> Khan.
Type "./new1"
Basically, you are trying to execute a program in your PATH, and new1 is
not. So you have to execute it by the full PATH (adding "./" in front of
it tells it to look in the current directory).
Ben
--
.----------=======-=-======-=========-----------=====------------=-=-----.
/ Ben Collins -- Debian GNU/Linux -- WatchGuard.com \
` bcollins@debian.org -- Ben.Collins@watchguard.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: