[Solved] Linker Errors LNK2019 and LNK1120 in single file code


From the documentation:

unresolved external symbol ‘symbol’ referenced in function ‘function’

The compiled code for function makes a reference or call to symbol,
but that symbol isn’t defined in any of the libraries or object files
specified to the linker.

This error message is followed by fatal error
LNK1120. You must fix all LNK2001 and LNK2019 errors to fix error
LNK1120.

You are referencing something not in the file that you are not linking to.

solved Linker Errors LNK2019 and LNK1120 in single file code