Reputation: 657
I have the following linker error and I suspect this has to do with linker that is being used but I don't seem to know where this problem is from.
[Linker error] undefined reference to `WinMain@16'
I am working in Dev C++ please on windows Vista Professional machine
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
char * pointarrty = "234";
int a = 0;
system("PAUSE");
return EXIT_SUCCESS;
}
Upvotes: 0
Views: 5575
Reputation: 5331
From MSDN :
If you are using Unicode and MFC, you will get an unresolved external on _WinMain@16 if you don't create an entrypoint to wWinMainCRTStartup; use the /ENTRY. See Unicode Programming Summary.
To set the entry point, refer, the MSDN article
Upvotes: 2