The ceil command is causeing my program to not compile.. is there another command that would have the same effect. to round a number up to it's next whole #.
I am using my schools complier olympus.. it might be a problem with my command...
years = ceil(years);
the error message was:
/var/tmp/ccLYNv1d.o(.text+0x264): undefined reference to `ceil'
You are not linking the maths libraries in. How you do this depends on the compiler (refer to the manuals) but under gcc it is done with the -lm switch -
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.