LINK : error LNK2001: unresolved external symbol WinMain referenced in function #WinMain$exit_thunk (EC Symbol)? (ARM64EC / VS 2022)

Yvan Grabit 1 Reputation point
2022-03-17T11:29:00.133+00:00

Hi
Visual C++2022 with ARM64EC as target
wWinMain is defined and linking with Windows as subSystem
=>
linker error:
2>LINK : error LNK2001: unresolved external symbol wWinMain (EC Symbol)
2>MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function #WinMain$exit_thunk (EC Symbol)

This works for ARM64 / x86, but not for ARM64EC
Any Idea? a library issue?

Thanks
Yvan

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,561 questions
{count} votes