i am creating a Win32 program in C, and i had the error 126 when executing the following code:
#include <windows.h>
#include <stdio.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
printf("%dn", GetLastError());
return 0;
}
Is it normal that it happens ? Or is it an external issue. Because i found it is a DLL file missing error, but my program is ment to be compiled. Here is the compiling command:
gcc main.c -o main.exe
i did that just because it is ment to remain as simple as it could, to know from where it comes.
It is a shortened version, just to see what causes the error. Before, i was trying to open a window, and i suspected the error 126 to cause all the others.