View Single Post
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,600
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
Code:
$ cat t1.c
#include <stdio.h>

int main(void)
{
    printf("Hello World\n");

    return 0;
}
My super secret code...sshhhh..

Code:
$ gcc t1.c
$ ls
a.out t1.c
By default, gcc creates the output named a.out, I would fix that with the call
Code:
$gcc t1.c -o t1
But based on the usage line that you are getting, the program just seems to expect a series of arguments passed in THAT order..

Cradom eluded to argument modifiers that allow people to pass arguments in ANY order, but this program might not support that..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks