在运行运行MSDN中的MFC实例代码出错:
Linking...
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.
这是什么原因吗?请高手指教,谢了!!!!!!!

解决方案 »

  1.   

    或者可以添加这句试试:
    #pragma comment(lib, "mfc42ud.lib")
      

  2.   

    把这个lib文件拷贝到当前路径中来
      

  3.   

    mfc42ud.lib这个库文件在哪里啊?我在机器上搜索了一下,可是没有
      

  4.   

    应该在 Microsoft Visual Studio\VC98\MFC\Lib 里面,没有的话找找吧
      

  5.   

    http://community.csdn.net/Expert/topic/4308/4308144.xml?temp=.1656458
    http://community.csdn.net/Expert/topic/4467/4467755.xml?temp=.5043909
    http://community.csdn.net/Expert/topic/4450/4450622.xml?temp=.3467371
      

  6.   

    1、问题在于:VC没有装全
    2、若不想重载VC,不要编译Unicode工程
      

  7.   

    换一种活动配置,选择一种没有unicode的配置,在 Build -> Set Active Configuration 中设置