[Solved] LNK1120 & LNK2019 in C


You don’t say which compiler you are using. At a guess it is Microsoft 2019. The delay function is called Sleep (uppercase s) and it is in milliseconds. It lives in the Windows.h file.

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <stdio.h>
...

   /* Sleep 100ms */
   Sleep(100);

Not that it makes a lot of difference on the faster processors nowadays: WIN32_LEAN_AND_MEAN excludes many of the unnecessary header files that are pulled in by Windows.h

solved LNK1120 & LNK2019 in C