编译时出现这种错误
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.是怎么回事,怎么解决?各位大虾救救我呀

解决方案 »

  1.   

    在工程的 setting里修改,找到你的 mfc42ud.lib
      

  2.   

    找到我的?mfc42ud.lib应该是系统里的库吧
    我是加上了UNICODE才出现这样的链接错误的
      

  3.   

    因为你要用到mfc42ud.lib,所以在setting里设置一下mfc42ud.lib的路径
      

  4.   

    程序肯定是隐式链接到mfc42ud.dll中的函数因此在链接程序的时候,应该在工程属性中加上mfc42ud.lib,你可以搜索这个文件,如果在系统目录中,那么就可以直接写文件名,因为程序链接的时候会自动到系统目录中找到这个文件;反之,如果这个文件没有在系统目录中,那么就要加上这个文件的绝对路径了
      

  5.   

    可是我搜遍了硬盘也找不到mfc42ud.lib,mfc42ud.dll呀
    哪位大侠知道怎么找到这个文件,这个文件又是干什么用的
      

  6.   

    哪位大侠有mfc42u.lib,mfc42u.dll,mfc42ud.lib,mfc42ud.dll
    多谢了,分不够可以加!!
      

  7.   

    vc安装盘里就有你找到拷贝过来不就OK了
      

  8.   

    已经在vc安装盘里找到了,多谢各位大侠
    不过又出现了以下问题
    msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Release/GDsms8668.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.这是怎么回事?
      

  9.   

    Symptom:
    Microsoft Visual C++ generates the link error:msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external symbol [email protected](crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16Cause:
    The linker is looking for the entry point for a console application, but the application is being compiled and linked as a windows application (i.e. not a console application).This error has been observed after changing the project settings from using MBCS to UNICODE characters.Remedy:
    Under the project settings, under the ‘Link’ tab, category ‘output’, set the ‘Entry-point symbol’ to ‘wWinMainCRTStartup’.
    转自:
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;125750
      

  10.   

    装上vc里面的unicode插件,可以参考MSDN<缺少mfc42ud.lib文件>
    要设置菜单Build->Set Active Configuration
    选择Win32 Release 就可以了。
    建议你用百度搜索一下吧
      

  11.   

    结贴了,谢谢各位大虾,问题解决了
     zoid()可以去另外一个帖子接分