Help in GCC compilation

Hua Jie Lee h.lee2@pgrad.unimelb.edu.au
Mon Nov 5 00:23:00 GMT 2007


Hi,

I am currently trying to compile a simple C code by using :-


gcc -o sample sample1.c

I managed to compile the above file .However when I want to run the
resulting program by ./sample

It returns me this error:- usage: change from [to]


I check the permission of the files and it is -rwx. What is the mistakes
or correect command to execute the resulting program in order to produce
.exe.


Please help as I am stuck in this steps.


Thanks

-Jason



More information about the Gcc-help mailing list