我编译的是directshow sdk 的samples audiocap工程
开始的时候编译工程,出现下面错误
Linking...
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.后来我查找这个lib的位置为D:\Program Files\Microsoft SDK\Lib\IA64\mfc
包含到工程目录后又出现了下面错误
Linking...
D:\Program Files\Microsoft SDK\Lib\IA64\mfc\mfc42ud.lib : fatal error LNK1112: module machine type "IA64" conflicts with target machine type "IX86"
Error executing link.exe.求达人帮忙,3q

解决方案 »

  1.   

    估计是你没有安装Unicode库。只有NT才支持Unicode,Win9x不支持,所以很多人都不使用Unicode方式,但显然你下载的代码使用了这种方式。如果你的程序本身和Unicode无关,你可以切换设置方式:选择菜单Build|Set Active Configure...。会出来个对话框,在框中选不带Unicode的模式,然后再重新编译。如果你的程序和Unicode有关,你就需要重新安装一下VC,选中Unicode库。
      

  2.   

    IA64可能是alpha64的库吧。
    IX86估计才是X86上面的呢。
      

  3.   

    Linker Tools Error LNK1104
    cannot open file "filename"The tool could not open the given file. TipsOne of the following may be a cause: There was not enough disk space.
    The file does not exist.
    The filename or its path was incorrectly specified.
    The specified drive is invalid.
    The file does not have the appropriate permissions.
    The path for filename expands to more than 260 characters.
    If the given file is named LNKn, which is a filename generated by the linker for a temporary file, then the directory specified in the TMP environment variable may not exist, or more than one directory is specified for the TMP environment variable. (Only one directory path should be specified for the TMP environment variable.)
    If the error occurs on the executable filename, an earlier version of the executable may still be running. You will need to terminate the executable before linking it. In Windows NT or Windows 95 you can use the utility PVIEW to look for and kill instances of the application. PVIEW.EXE is shipped with Visual C++. 
    If the error message occurs for a library name, and you recently ported the .MAK file from a previous Microsoft Visual C++ development system, the library may no longer be valid. Ensure that the library still exists in this circumstance. 
      

  4.   

    你没有安装UNICODE支持库。
    菜单Biuld--->Set Active Configuration...
    对话框中选"ProjectName"-Win32 Release即可编译通过
    "ProjectName"-Win32 Debug也可