Question:

S_USBPlugTestDlg.obj : error LNK2001: unresolved external symbol __imp__GlobalMemoryStatusEx@4

Dedug/3S_USBPlugTest.exe : fatal error LNK1120: 1 unresolved externals

 

 

 

 

Because:

too many versions of Kernel32.lib

 

 

Solution:

1.Copy the correct version of lib ( from x86 folder) to source code

 

2.Create Lib folder in souce code

 

3.add lib:

#pragma comment(lib, "Kernel32.lib")

 

 

文章標籤
全站熱搜
創作者介紹
創作者 天才R 的頭像
天才R

做 個 有 趣 的 人

天才R 發表在 痞客邦 留言(0) 人氣(481)