Send to a Friend

Thammuz's avatar

I need C troubleshooting: When i include a library do i have to do something more in order to have its functions work in my script?

I’m writing some code for my “programming fundamentals” class, just for a bonus point with the examiner, i need to use some functions from the math.h library so i added the ”#include <math.h>” string at the beginning, along with the others i needed.

Then i looked up the functions i needed on the net and i wrote the code. the compiler tells me there is an “implicit declaration of function ‘div’” and an “implicit declaration of function ‘fmod’” (which are the only two functions from math.h i’m using)

The problem is that i did use other libraries before and i never had this kind of problems.

If it’s needed i will post the code, i didn’t post it right now because i have to pass it from my laptop and i’m too lazy to do that without good reason…

Cheers and thanks in advance!

Topics: ,

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.

Mobile | Desktop


Send Feedback   

`