docs - change recommended compiler to gcc
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<p>This tutorial explains how to create and run a simple program in the C programming language (using the tcc C compiler) on MontaukOS.</p>
|
<p>This tutorial explains how to create and run a simple program in the C programming language (using the gcc compiler) on MontaukOS.</p>
|
||||||
<hr><ol>
|
<hr><ol>
|
||||||
<li>Open the Text Editor by navigating to the 'Applications' section in the app menu.</li>
|
<li>Open the Text Editor by navigating to the 'Applications' section in the app menu.</li>
|
||||||
<blockquote><strong>Did you know?</strong> The MontaukOS Text Editor provides syntax highlighting for C and Lua files.</blockquote>
|
<blockquote><strong>Did you know?</strong> The MontaukOS Text Editor provides syntax highlighting for C and Lua files.</blockquote>
|
||||||
@@ -147,8 +147,8 @@ int main(void) {
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
</li>
|
</li>
|
||||||
<li>If you saved your program's source file somewhere other than your Home directory, switch to the directory in which you saved your program using the <i>cd</i> command. For example, <code>cd Documents</code>.</li>
|
<li>If you saved your program's source file somewhere other than your Home directory, switch to the directory in which you saved your program using the <i>cd</i> command. For example, <code>cd Documents</code>.</li>
|
||||||
<br><li>Type '<code>tcc </code>' followed by your program's name, and then press enter. For example, '<code>tcc hello.c</code>'.</li>
|
<br><li>Type '<code>gcc </code>' followed by your program's name, and then press enter. For example, '<code>gcc hello.c</code>'.</li>
|
||||||
<br><li>Run your program by typing its name without the '.c' extension, before pressing enter - for example, "hello".</li>
|
<br><li>Run your program by typing "a.out" and pressing enter.</li>
|
||||||
<br><li>You should see "Hello, World!" displayed in the Terminal window. Congratulations!</li>
|
<br><li>You should see "Hello, World!" displayed in the Terminal window. Congratulations!</li>
|
||||||
<br>
|
<br>
|
||||||
<img src="images/terminal-c.png" alt="">
|
<img src="images/terminal-c.png" alt="">
|
||||||
|
|||||||
Reference in New Issue
Block a user