To use /MT in premake:

staticruntime "on"
runtime "Release"

To use /MTd in premake:

staticruntime "on"
runtime "Debug"

To use /MD in premake:

staticruntime "off"
runtime "Release"

To use /MDd in premake:

staticruntime "off"
runtime "Debug"

 

reference by https://stackoverflow.com/questions/68055032/lnk2001-unresolved-external-symbol-imp-calloc-when-attempting-to-run-a-basic-p