1. 程式人生 > >error LNK2019 無法解析的外部符號 imp GetUserObjectInformationW,該符號

error LNK2019 無法解析的外部符號 imp GetUserObjectInformationW,該符號

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow

也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!

                       

錯誤  18  error LNK2019: 無法解析的外部符號 __imp_GetUserObjectInformationW,該符號在函式 OPENSSL_isservice 中被引用  E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(cryptlib.obj)   SimpleAuthenticator
錯誤  19  error LNK2019: 無法解析的外部符號 __imp_GetProcessWindowStation,該符號在函式 OPENSSL_isservice 中被引用    E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(cryptlib.obj)   SimpleAuthenticator
錯誤  20  error LNK2019: 無法解析的外部符號 __imp_GetDesktopWindow,該符號在函式 OPENSSL_isservice 中被引用   E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(cryptlib.obj)   SimpleAuthenticator
錯誤  21  error LNK2019: 無法解析的外部符號 __imp_MessageBoxW,該符號在函式 OPENSSL_showfatal 中被引用    E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(cryptlib.obj)   SimpleAuthenticator
錯誤  22  error LNK2019: 無法解析的外部符號 __imp_DeregisterEventSource,該符號在函式 OPENSSL_showfatal 中被引用  E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(cryptlib.obj)   SimpleAuthenticator
錯誤  23  error LNK2019: 無法解析的外部符號 __imp_ReportEventW,該符號在函式 OPENSSL_showfatal 中被引用   E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(cryptlib.obj)   SimpleAuthenticator
錯誤  24  error LNK2019: 無法解析的外部符號 __imp_RegisterEventSourceW,該符號在函式 OPENSSL_showfatal 中被引用   E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(cryptlib.obj)   SimpleAuthenticator
錯誤  25  error LNK2019: 無法解析的外部符號 __imp_DeleteDC,該符號在函式 readscreen 中被引用  E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  26  error LNK2019: 無法解析的外部符號 __imp_DeleteObject,該符號在函式 readscreen 中被引用  E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  27  error LNK2019: 無法解析的外部符號 __imp_GetBitmapBits,該符號在函式 readscreen 中被引用 E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  28  error LNK2019: 無法解析的外部符號 __imp_BitBlt,該符號在函式 readscreen 中被引用    E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  29  error LNK2019: 無法解析的外部符號 __imp_GetObjectW,該符號在函式 readscreen 中被引用    E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  30  error LNK2019: 無法解析的外部符號 __imp_SelectObject,該符號在函式 readscreen 中被引用  E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  31  error LNK2019: 無法解析的外部符號 __imp_CreateCompatibleBitmap,該符號在函式 readscreen 中被引用    E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  32  error LNK2019: 無法解析的外部符號 __imp_GetDeviceCaps,該符號在函式 readscreen 中被引用 E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  33  error LNK2019: 無法解析的外部符號 __imp_CreateCompatibleDC,該符號在函式 readscreen 中被引用    E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  34  error LNK2019: 無法解析的外部符號 __imp_CreateDCW,該符號在函式 readscreen 中被引用 E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\SimpleAuthenticator\libeay64.lib(rand_win.obj)   SimpleAuthenticator
錯誤  35  error LNK1120: 17 個無法解析的外部命令    E:\FileRecv\SimpleAuthenticator(1)\SimpleAuthenticator\x64\Debug\SimpleAuthenticator.dll    SimpleAuthenticator

參考MSDN:https://msdn.microsoft.com/en-us/library/ms683238(VS.85).aspx

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

Unicode and ANSI names

GetUserObjectInformationW (Unicode) and GetUserObjectInformationA (ANSI)

我們要找的就是Library:User32.lib,如果想以靜態引用的方式使用GetUserObjectInformation API,就需要將 User32.lib 加入連結器輸入的附加依賴項,操作方法如下圖:
在解決方案資源管理器中選中對應的專案
這裡寫圖片描述
點選專案選單》屬性,或者是直接在專案上單擊滑鼠右鍵》屬性
這裡寫圖片描述
展開配置屬性》連結器,選中輸入,點選附加依賴項右側的下拉框,在彈出的選單中點選編輯
這裡寫圖片描述
輸入附加依賴項,點選確定。
這裡寫圖片描述

           

給我老師的人工智慧教程打call!http://blog.csdn.net/jiangjunshow

這裡寫圖片描述