Hello, I'm having a problem running the MSDN's Learn to program windows module 1 program. It would seem the problematic part is the function signature.
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow)
I can get this program to run from command prompt if I use the following command:
g++ Window.cpp -mwindows -o Windows.exe'
with the following function signature change:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pCmdLine, int nCmdShow)
My question is why do I get an undefined reference to 'WinMain@16' when I use the one in the tutorial. I thought this just allowed a larger range of unicode? If someone could possibly tell me how to get the original code to run for mingw compiler that would be great.