When building a project, I get the following list of errors:
LNK2001 unresolved external symbol __C_specific_handler [project_path]\[some_obj].obj LNK2001 unresolved external symbol memchr [project_path]\[some_obj].obj LNK2001 unresolved external symbol MyFunction [project_path]\[project_name].obj LNK2001 unresolved external symbol _exit [project_path]\[project_name].obj LNK2001 unresolved external symbol wWinMainCRTStartup LINK LNK1120 5 unresolved externals [project_name].exe On MSDN found this . Especially did not understand how to add msvcrt.lib and msvcmrt.lib to additional dependencies of the linker. I tried to do it like this:
Project-> Properties-> C ++ -> Linker-> Command Line-> Additional Options
wrote /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcmrt.lib . But nothing has changed. How to solve these same type linking errors?
Perhaps this is important in addressing this issue: I compile the project as a C code (/ TC).
/NODEFAULTLIBprevents linking of default libraries, but does not add them. - VTT