Suddenly getting LNK2001 errors

437 Views Asked by At

Been working on this project in Visual Studio 2017 for a couple weeks, and suddenly since my last build I started getting hundreds of LNK2001 errors. The supposed unresolved symbols seem to be standard CRT and C++ stuff, for example memmove, _imp_CrtDbgReport, strlen, etc. I was doing some stuff in the config of my project so I'm betting I hovered over an option and accidentally scrolled or something, but I can't seem to see any obvious issue.

The project is still being generated with the MDd CRT, I'm not ignoring default libs. I have, however, started using a new 3rd party library, but again the supposed LNK2001 errors are for things like strlen and memcpy.

To be clear, the issue I'm facing is that the standard C and C++ library functions like strlen, memmove, etc. that I have been using the entire time (not explicitly) are suddenly showing up as unresolved external symbols.

1

There are 1 best solutions below

1
On

I found the issue. I was passing in a command line argument to set the entry point to be wWinMain rather than just setting the subsystem type of the application to Windows.