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.
arrow
arrow
    全站熱搜

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