I used Filezilla to upload a file called main.c to a server that has the gcc 4.4.7 package installed on it. My teacher gave the following instructions in bold below. But I can't seem to run the main.c program without getting several "No such file or directory" messages. For example, I tried typing "gcc main.c –o main.out" and it did not work. I just want to be able to view the output of a "hello world" program in Terminal.
Basic syntax of a compile: gcc programname.c –o nameofexecutable.out
Execute the program by entering nameofexecutable.out from the command-line