albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.81k stars 411 forks source link

undefined reference to `lrint' #467

Closed crackedpotato007 closed 1 year ago

crackedpotato007 commented 1 year ago

I am using cmake to build miraclecast but around 54 i keep getting this error

53%] Linking C executable miracle-dhcp
/usr/bin/ld: ../shared/libmiracle-shared.a(shl_log.c.o): in function `log__submit':
shl_log.c:(.text+0x1f4): undefined reference to `lrint'
collect2: error: ld returned 1 exit status
make[2]: *** [src/dhcp/CMakeFiles/miracle-dhcp.dir/build.make:164: src/dhcp/miracle-dhcp] Error 1
make[1]: *** [CMakeFiles/Makefile2:348: src/dhcp/CMakeFiles/miracle-dhcp.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
crackedpotato007 commented 1 year ago

Got around it with #458