Set the file permission to execute

chmod u=rwx, go=rx a.out or
chmod 755 a.out

and run the file by sepcifing the path of the file
if u are in the same directory where the file is type ./a.out

regards
lilo
----- Original Message ----- 
From: ketan shah <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 11:55 PM
Subject: [ILUG-BOM] c++ execute problem


> hi,
> 
> i couldn't execute c and c++ program.
> 
> when i type for c++ program
> g++ test.cpp
> a.out is created but i can not able to execute with
> typing a or a.out.so tell me how to execute and see
> output.
> 
> bye
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions! 
> http://auctions.yahoo.com
> _______________________________________________
> http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

_______________________________________________
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to