The error messages you see mean that you are linking against the integer only library while using floating point operations.
Removing the -D option does not actually change much. The main change you have to do is to use the proper library, check the {Install}\lib\hc12c\readme.txt and also the threads you mentioned.
Daniel