我收到以下链接错误。

1>------ Build started: Project: NowHook, Configuration: Debug Win32 ------
1>Compiling...

1>NowHook.CPP
1>Linking...

1>NowHook.obj : error LNK2019: unresolved external symbol __imp__VirtualProtect@16 referenced in function "void __cdecl

1>NowHook.obj : error LNK2019: unresolved external symbol __imp__GetProcAddress@8 referenced in function "void __cdecl

1>NowHook.obj : error LNK2019: unresolved external symbol __imp__LoadLibraryA@4 referenced in function "void __cdecl HookSend(void)" (?HookSend@@YAXXZ)

1>C:\Users\JAGAN\Documents\Visual Studio 2008\Projects\HookNow\Debug\NowHook.dll :
fatal error LNK1120: 3 unresolved externals

1>Build log was saved at "file://c:\Users\JAGAN\Documents\Visual Studio 2008\Projects

我已经包括
1)链接器/常规/附加库目录
2)链接器/输入/附加依赖项

最佳答案

您在链接器/输入/其他依赖项中缺少kernel32.lib

确保为“所有配置”和“所有平台”设置了其他依赖关系。

关于c++ - LNK2019- Unresolved external symbol ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11481633/

10-10 21:27