I wanted to use NODEFAULTLIB linker option in my project. However, when I try to use CRT-based functions like printf and ... Visual studio produces the following errors:
ERROR: unresolved external symbol printf.
So I try to use the following macro:
#pragma comment(lib, "msvcrt.lib")
but it doesn't solve the problem. I get the same error again. However, how can I solve this issue?