Googling "gcc flags" will get you lots of information about compiling more complex programs (multiple files, etc.). a.outĪnd boom this is all you need for simple c development. it will already work on your mac) gcc hello_world.cĪnd then run the resulting "a.out" file. All you need to do is to compile the program with gcc (the most common c compiler. You've saved the file and want to run the program. So say you are happily editing away at hello_world.c. When you press the "play button" all you are really doing is invoking a C compiler (crunching the source code into something the computer can run) and then executing the program spit out by the compiler. If you want to get a leg up on your peers, learn to interact with a C project strictly from the terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |