I use Embarcadero C++Builder 10.2 Tokyo (Community Edition).
I try to use the RoundTo()
function. I can use it in a VCL project by adding the <Math.hpp>
header, but in a Console project I can not use this function at all. I get 2 error messages:
[ilink32 Error] Error: Unresolved external '__fastcall System :: Math :: RoundTo (const long double, const signed char)' referenced from C: \ USERS \ ... \ ROUNDTOCONSOLE \ WIN32 \ DEBUG \ ROUNDTOCONSOLE.OBJ
and
[ilink32 Error] Error: Unable to perform link
Please tell me how to use this function in a Console project? What library or namespace do I need to use? And why can I use it in a VCL project, is there a problem in the console?