Wednesday, April 24, 2019

c++ - Linker error: unresolved external symbol _WinMain@16 when building console application

I'm trying to compile this code is Visual Studio 2015:



int main()
{
double* pvalue = NULL;
pvalue = new double;


*pvalue = 29494.99;
cout << "Value of pvalue : " << *pvalue << endl;

delete pvalue;

return 0;
}


And i'm getting this compile error:




1>MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)



Is this a Visual Studio problem? Should I reinstall it?

No comments:

Post a Comment

plot explanation - Why did Peaches&#39; mom hang on the tree? - Movies &amp; TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...