School of Physics, Mathematics, and Computing 
Not logged in (login)
help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!" followup message.

How do I ask a good question?
 
Options:
RSS cloud
Jump to:

compiler

4 of 678 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Thu 29th Jul 2021, 2:20pm
Actions: 
Login-to-reply

I was just wondering what the default C compiler for this unit is? And which one will 
be used to run our projects? In lecture 2 you mentioned the gcc compiler… is this the 
online compiler that we are meant to use??

Thanks for the help!

compiler

photo
From: Christopher M.
Date: Thu 29th Jul 2021, 2:29pm
Actions: 
Login-to-reply

ANONYMOUS wrote:

> I was just wondering what the default C compiler for this unit is? And which one will 
> be used to run our projects? In lecture 2 you mentioned the gcc compiler… is this the 
> online compiler that we are meant to use??

(a more descriptive Subject will help everyone out, particularly as the number of different topics 
grows)

Whether using the Linux operating system natively (booted from its own disk partition), using Linux 
within some virtual environment under Windows or macOS,  or even on macOS itself, we'll use the 
*native* C compiler for the platform.

The native C compiler under Linux is named gcc, and under macOS is named clang  (and more 
confusingly, gcc may also be installed on macOS, and clang may be installed on Linux).

HOWEVER, don't worry about which actual compiler is in place on your system.
While you can invoke  gcc  or clang  to identify exactly which you want, it's best to just invoke  
cc  (standing for C Compiler),  and that will run the native compiler on your system, regardless of 
which it is.

compiler

photo
From: ANONYMOUS
Date: Tue 3rd Aug 2021, 8:59am
Actions: 
Login-to-reply

I ran into some trouble getting the compiler in ubuntu 18.04 on my laptop working, but this 
video  
 was helped heaps.  The syntax in some of 
the commands in this video for upgrade steps didn't work (im running windows 10), but a little 
bit of googling and tinkering got it sorted out 

compiler

photo
From: ANONYMOUS
Date: Tue 3rd Aug 2021, 9:07am
Actions: 
Login-to-reply

I also discovered that using WSL 1 was important for making 18.04 work.  (you can switch between wsl 1 
and 2 in powershell).  Trying to run Ubuntu 18.04 on WSL 1 resulted in catastrophic error for me and 
took a bit of head bashing and lots of googling to sort out.  =) 
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  6:26am Aug 12 2021