microsoft / openssl

A cross-platform cryptographic library
133 stars 57 forks source link

Removed WINAPI declaration to prevent @ decoration of function name #28

Closed kshalnev closed 6 years ago

kshalnev commented 8 years ago

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.

khouzam commented 7 years ago

Hi @kshalnev

I think that the issue is actually the same as issue #42. I'm pushing out a fix for this. Can you please try it again?

Sorry for the inconvenience.