![]() If you intend on compiling/executing your program quite a lot, you may save yourself time by writing a Makefile. (Reminder: ls to list directory contents, cd to change directory.)Ĭompile your code with gcc -o program yourcode.c. Or use your Leafpad editor (and make sure to know where your file is saved).īack to the terminal, navigate to where your C file is stored.In the terminal, type nano yourcode.c (assuming you want to use nano). ![]() To compile from the command line (assuming yourcode.c is the name of your C file, and program the name of the resulting program after compilation): do not edit with sudo nano, only use nano) if all you are doing is personal stuff that does not need superuser permissions. Do NOT use nano (or another text editor to put your code into) with root/sudo permissions (ie.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |