In my KMDF X64 project , I am using some standard C functions related to floating numbers, such as ceil, floor, and strtod.
If I do not link against libcntpr.lib, I get the following errors:
1>libc_builtin_wrapper.obj : error LNK2001: unresolved external symbol _fltused
1>tiny_application.obj : error LNK2001: unresolved external symbol _fltused
1>libc_builtin_wrapper.obj : error LNK2019: unresolved external symbol isalpha referenced in function isalpha_wrapper
1>libc_builtin_wrapper.obj : error LNK2019: unresolved external symbol isalnum referenced in function isalnum_wrapper
1>libc_builtin_wrapper.obj : error LNK2019: unresolved external symbol isgraph referenced in function isgraph_wrapper
1>libc_builtin_wrapper.obj : error LNK2019: unresolved external symbol strcspn referenced in function strcspn_wrapper
1>libc_builtin_wrapper.obj : error LNK2019: unresolved external symbol strtol referenced in function strtol_wrapper
1>libc_builtin_wrapper.obj : error LNK2019: unresolved external symbol strtoul referenced in function strtoul_wrapper
1>tiny_application.obj : error LNK2001: unresolved external symbol strtoul
1>tiny_application.obj : error LNK2019: unresolved external symbol strtod referenced in function execute_func
1>tiny_runtime_common.obj : error LNK2019: unresolved external symbol strtok referenced in function tiny_runtime_init_tiny
1>tiny_interp_classic.obj : error LNK2019: unresolved external symbol ceil referenced in function tiny_interp_call_func_bytecode
1>tiny_interp_classic.obj : error LNK2019: unresolved external symbol ceilf referenced in function tiny_interp_call_func_bytecode
1>tiny_interp_classic.obj : error LNK2019: unresolved external symbol floor referenced in function tiny_interp_call_func_bytecode
1>tiny_interp_classic.obj : error LNK2019: unresolved external symbol floorf referenced in function tiny_interp_call_func_bytecode
If I link against libcntpr.lib, the errors change to:
1>libcntpr.lib(_atodbl.obj) : error LNK2019: unresolved external symbol _ld12tod referenced in function _atodbl_l
1>libcntpr.lib(_atodbl.obj) : error LNK2019: unresolved external symbol _ld12tof referenced in function _atoflt_l
1>libcntpr.lib(_atodbl.obj) : error LNK2019: unresolved external symbol _ld12told referenced in function _atoldbl_l
1>libcntpr.lib(_atodbl.obj) : error LNK2019: unresolved external symbol __strgtold12_l referenced in function _atodbl_l
1>libcntpr.lib(_atodbl.obj) : error LNK2001: unresolved external symbol __ptmbcinfo
1>libcntpr.lib(_strtod.obj) : error LNK2019: unresolved external symbol _fltin referenced in function _strtod_l
Could someone please advise me on how to handle this situation?