PLEASE NOTE: the upgrades to this server, secure.csse.uwa.edu.au, have not yet been completed.
Hopefully the changes will be completed on THURSDAY 8th December.
Web-based programs, such as csmarks, cssubmit, and the help fora, will be unavailable at some time on Thursday 8th.
  It's UWAweek 49

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.

Displaying the 4 articles in this topic
Showing 4 of 919 articles.
Currently 3 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
6:53pm Wed 14th Sep, ANONYMOUS

When compiling my project I am required to add a -lm flag at the end of the command to link the math.h library otherwise it won't compile. Will this flag be used when compiling our projects for marking? For reference I am using gcc compiler on Ubuntu 22.04.1 Thanks in advance


SVG not supported

Login to reply

👍?
helpful
7:03pm Wed 14th Sep, Christopher M.

ANONYMOUS wrote:
> When compiling my project I am required to add a -lm flag at the end of the command to link the math.h library otherwise it won't compile. Will this flag be used when compiling our projects for marking?
Was not anticipating compiling with -lm Why do you need it?


SVG not supported

Login to reply

👍?
helpful
7:20pm Wed 14th Sep, ANONYMOUS

"Christopher McDonald" <ch*i*.*c*o*a*[email protected]*a*e*u*a*> wrote:
> ANONYMOUS wrote: > > > When compiling my project I am required to add a -lm flag at the end of the command to link the math.h library otherwise it won't compile. Will this flag be used when compiling our projects for marking? > > Was not anticipating compiling with -lm > Why do you need it?
I use fmod and floor from the math.h library, it seems this library must be explicitly linked to when compiling... https://askubuntu.com/questions/332884/how-to-compile-a-c-program-that-uses-math-h


SVG not supported

Login to reply

👍?
helpful
7:25pm Wed 14th Sep, Christopher M.

I cannot imagine why you’re using floating point values in this project, and suggest you try to remove them.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy