[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE:plz help me i am new to linux



Muhammad Humayun Khan writes:
 > I am new tolinux i have a problem.
 > debian linux. i am using "gcc"(for c++ i m using g++) to compail my c++ 
 > program .
 > i try it but it will not work.
 > i write my program in c++ using "vi" and save it in a file new1.cc
 > then login as root and run this comand root:/g++ -o new1 new1.cc
 > it run and make new1. then i type root:/new1 (to run this program but it 
 > does't work)the error msg come bash:new1:command not found.
 > could any body solve my problem.

I suspect that your problem is that to run new1, you need to run:
% ./new1,
where % is just the bash prompt.
This also assumes that
% ls -l
shows one line like:
-rwxr-xr-x    1 user    group    1234 Jan 31 12:00 new1

Andrew.



Reply to: