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")

 

 

________________________________________ 3S CONFIDENTIALITY NOTICE: This message and all attachments may contain legally privileged and confidential information. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by replying to the message and delete all copies. Thank you.
創作者介紹
創作者 天才R 的頭像
天才R

做 個 有 趣 的 人

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