我最近在 VS Professional 2008 中将一个项目从 x32 迁移到 x64,我收到了这个奇怪的链接器错误:
error LNK2001: unresolved external symbol __imp_PostMessageW
error LNK2001: unresolved external symbol __imp_FlushFileBuffers
error LNK2001: unresolved external symbol __imp_WriteFile
error LNK2001: unresolved external symbol __imp_WaitForSingleObject
error LNK2001: unresolved external symbol __imp_SetFilePointer
error LNK2001: unresolved external symbol __imp_EnterCriticalSection
...
更多的是这种性质。我在链接器中包含shlwapi.lib。在 Windows 7 x64 上运行。
附加依赖项: