It's UWAweek 6

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 selected article
Showing 1 of 1168 articles.
Currently 3 other people reading this forum.


SVG not supported

Login to reply

👍?
helpful
1:10pm Mon 11th Sep, Christopher M.

ANONYMOUS wrote:
> so I had a look into the ceil() function but I am getting errors. A quick google search suggests I need to add "-lm" after the typical compilation command to use it, would that be valid? I ask this because it says on the project sheet that it should only compile with "cc -std=c11 -Wall -Werror -o myscheduler myscheduler.c" which does not have a "-lm" in it.
Sorry, I can't reply as fast as you can cut-and-paste the same question. The ceil() function is in the standard C maths library, which is why you'll need the -lm linker option on Linux. Yes, you may use it. On macOS, Apple have chosen to include the maths functions in the standard-C (main) library, so you don't need to add -lm on Apple.

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  8:08AM Aug 25 2024
Privacy policy