c - undefined reference to `ceilf' -


i trying "make" program , yet face these errors; used make -lm , did #include still face same problem. tried installing application on both ubuntu , debian make sure remove doubts on corrupted libraries.still no success !

nat_src_endpoint_ip.o: in function `__new':     /root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_ip.c:95: undefined reference `ceilf'     nat_src_endpoint_tcp.o: in function `__create':     /root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_tcp.c:58: undefined reference `ceilf'     nat_src_endpoint_udp.o: in function `__create':     /root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_udp.c:59: undefined reference `ceilf'     nat_src_endpoint_icmp.o: in function `__create':     /root/softwares/sweetspot-0.0.20/src/nat_src_endpoint_icmp.c:48: undefined reference `ceilf'     collect2: ld returned 1 exit status     make[1]: *** [sweetspot] error 1     make[1]: leaving directory `/root/softwares/sweetspot-0.0.20/src'     make: *** [all] error 2 

you should link math library. in gcc means should add -lm linking command line (if use 1 command line means command line both compiling , linking).


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -