Question:
S_USBPlugTestDlg.obj : error LNK2001: unresolved external symbol __imp__GlobalMemoryStatusEx@4
Dedug/3S_USBPlugTest.exe : fatal error LNK1120: 1 unresolved externals
![[MFC]error LNK2001: unresolved [MFC]error LNK2001: unresolved](https://pic.pimg.tw/lionrex/1510110512-501524973.png)
Because:
too many versions of Kernel32.lib
![[MFC]error LNK2001: unresolved [MFC]error LNK2001: unresolved](https://pic.pimg.tw/lionrex/1510110513-1334891368.png)
Solution:
1.Copy the correct version of lib ( from x86 folder) to source code
![[MFC]error LNK2001: unresolved [MFC]error LNK2001: unresolved](https://pic.pimg.tw/lionrex/1510110514-2747128058.png)
2.Create Lib folder in souce code
![[MFC]error LNK2001: unresolved [MFC]error LNK2001: unresolved](https://pic.pimg.tw/lionrex/1510110514-1915195988.png)
3.add lib:
#pragma comment(lib, "Kernel32.lib")
![[MFC]error LNK2001: unresolved [MFC]error LNK2001: unresolved](https://pic.pimg.tw/lionrex/1510110514-1521138183.png)
請先 登入 以發表留言。