Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/xlt.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

解决方案 »

  1.   

    可我这是个单线程啊。
    而且,我改成多线程后,报得错更多。
    都是些LNK2005的错误。看:
    LIBCD.lib(crt0dat.obj) : error LNK2005: ___argv already defined in LIBCMTD.lib(crt0dat.obj)
    LIBCD.lib(crt0dat.obj) : error LNK2005: ___argc already defined in LIBCMTD.lib(crt0dat.obj)
    LIBCD.lib(crt0dat.obj) : error LNK2005: __winminor already defined in LIBCMTD.lib(crt0dat.obj)
    LIBCD.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in LIBCMTD.lib(crt0dat.obj)
    LIBCD.lib(crt0dat.obj) : error LNK2005: __winver already defined in LIBCMTD.lib(crt0dat.obj)
    LIBCD.lib(crt0dat.obj) : error LNK2005: __osver already defined in LIBCMTD.lib(crt0dat.obj)
    LIBCD.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in LIBCMTD.lib(crt0dat.obj)
    LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in LIBCMTD.lib(winxfltr.obj)
    LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptActTabCount already defined in LIBCMTD.lib(winxfltr.obj)
    LIBCD.lib(winxfltr.obj) : error LNK2005: __Num_FPE already defined in LIBCMTD.lib(winxfltr.obj)
    LIBCD.lib(winxfltr.obj) : error LNK2005: __First_FPE_Indx already defined in LIBCMTD.lib(winxfltr.obj)
    LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptActTab already defined in LIBCMTD.lib(winxfltr.obj)
    LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
    Debug/xlt.exe : fatal error LNK1169: one or more multiply defined symbols found
    Error executing link.exe.xlt.exe - 30 error(s), 1 warning(s)
      

  2.   

    link页忽略库LIBCD.lib LIBCMTD试试.