Also these problems exist with x86:#define WIN32_LEAN_AND_MEAN
#include <windows.h>
//char * po_strstr(const char *string1, const char *string2);
//#pragma comment(linker, "-export:po_strstr=pocrt.strstr")
#pragma comment(linker, "-export:MessageBoxA=user32.MessageBoxA")
BOOL WINAPI _DllMainCRTStartup(HANDLE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
{
return 1;
}
POLINK: error: Unresolved external symbol 'MessageBoxA' - referenced from '<common>'.
POLINK: fatal error: 1 unresolved external(s).
In x64 this line works#pragma comment(linker, "-export:MessageBoxA=user32.MessageBoxA")