This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:unix:fall2023:projects:abc0 [2023/08/23 22:41] – abowes2 | notes:unix:fall2023:projects:abc0 [2023/08/27 22:54] (current) – [Clone lab46 semester repo on your system] cmazzara | ||
---|---|---|---|
Line 19: | Line 19: | ||
====Clone lab46 semester repo on lab46==== | ====Clone lab46 semester repo on lab46==== | ||
+ | You can accomplish this by running **fixrepo** at the lab46 prompt: | ||
+ | |||
+ | <cli> | ||
+ | lab46:~$ fixrepo | ||
+ | </ | ||
+ | |||
+ | and follow and instructions, | ||
====Log into Lab46 wiki==== | ====Log into Lab46 wiki==== | ||
Line 45: | Line 52: | ||
Once you have piph installed, the command below will clone the repo onto your system (NO SPACES) | Once you have piph installed, the command below will clone the repo onto your system (NO SPACES) | ||
- | wget -q https: / / lab46.g7n.org/ | + | wget - q https:// |
- | bash ./piph | + | |
Then, do an hg status, then hg pull and hg update. | Then, do an hg status, then hg pull and hg update. | ||
Line 72: | Line 78: | ||
} | } | ||
- | The header stdio.h stands for **ST**andar**D** **I**nput | + | The header stdio.h stands for STandarD Input and Output. cool acronym !!!!!!!!!!!!!!!!!!! wow |
- | return 0; is also important. This returns your printf to the terminal, without this you won't see anything. | + | |
+ | return 0; is also important. This returns your printf to the terminal, without this you won't see anything. I think. | ||
Compile with gcc (you' | Compile with gcc (you' | ||
gcc -Wall -std=gnu18 -o hello hello.c | gcc -Wall -std=gnu18 -o hello hello.c | ||
+ | |||
+ | Simpler version: | ||
+ | gcc hello.c -o hello | ||
+ | |||
+ | Unsure what the difference between these two are. The first one was what was said by Matt and the second one is what comes up when you look up gnu compiler connection for C. | ||
Test your executable by inputting ./ | Test your executable by inputting ./ | ||
Line 94: | Line 106: | ||
Step 4. | Step 4. | ||
+ |