Hello. I've got linking error "LNK2001 unresolver external symbol" while linking libeay32.lib,
which were build for UWP, namely these function were not found:
error LNK2001: unresolved external symbol FlushConsoleInputBuffer@
error LNK2001: unresolved external symbol GetProcessWindowStation@
error LNK2001: unresolved external symbol GetUserObjectInformationW@
error LNK2001: unresolved external symbol GetVersionEx@
error LNK2001: unresolved external symbol GlobalMemoryStatus@
These functions are declared in ms\winrt.cpp and only these functions have WINAPI specification
(+ GetStdHandle, but under STD_ERROR_HANDLE define), all other Win Api stubs are declared without WINAPI specification (see the file). This WINAPI declaration forces compiler to decorate name with '@', therefore functions cannot be found.
Without WINAPI declaration everything is OK.
Hello. I've got linking error "LNK2001 unresolver external symbol" while linking libeay32.lib, which were build for UWP, namely these function were not found: error LNK2001: unresolved external symbol FlushConsoleInputBuffer@ error LNK2001: unresolved external symbol GetProcessWindowStation@ error LNK2001: unresolved external symbol GetUserObjectInformationW@ error LNK2001: unresolved external symbol GetVersionEx@ error LNK2001: unresolved external symbol GlobalMemoryStatus@ These functions are declared in ms\winrt.cpp and only these functions have WINAPI specification (+ GetStdHandle, but under STD_ERROR_HANDLE define), all other Win Api stubs are declared without WINAPI specification (see the file). This WINAPI declaration forces compiler to decorate name with '@', therefore functions cannot be found. Without WINAPI declaration everything is OK.