求高手帮解决
#include <iostream>#include <afx.h>
using namespace std;
int main(int argc, char *argv[])
{
CFileFind finder;
BOOL bWorking = finder.FindFile("F:\\*.*");
while (bWorking)
{
bWorking = finder.FindNextFile();
cout << (LPCTSTR) finder.GetFileName() << endl;
}
return 0;
}
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in libcpd.lib(delop.obj)
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/hjk.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
hjk.exe - 4 error(s), 0 warning(s)