'wWinMain': function cannot be overloaded
Closed this issue · 2 comments
copilot0058 commented
Describe the bug
I try to build the cef project by myself and I just use this simply code to build. It show 'wWinMain': function cannot be overloaded
To Reproduce
// Program entry point function.
int APIENTRY wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow) {
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
return shared::RunMain(hInstance, nCmdShow);
}
magreenblatt commented
An executable target can only have one wWinMain implementation.
copilot0058 commented
Do you have the special technique to solve it?
Because I just paste the similar code, like this
cef/tests/cefclient/cefclient_win.cc
Lines 135 to 141 in 6f44cfc
cef/tests/cefsimple/cefsimple_win.cc
Lines 24 to 30 in 6f44cfc