我用我的编译器向导编辑了一个最简单的程序,
选择了  mfc appwizard(exe) 单文档,其他选
项都取默认值,然后直接编译程序,在连接时
竟然有一个错误:
--------------------Configuration: EditSoft - Win32 Debug--------
Linking...
D:\Program Files\Microsoft Visual Studio\VC98\LIB\ole32.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x6ead0861
Error executing link.exe.EditSoft.exe - 1 error(s), 0 warning(s)我查了msdn,可是还是不明白,我的ole32.lib存在,d盘还有13G空间,
不可能出现这个错误啊??
然后我在建立程序时,选择不用activeX支持,和用静态连接mfc库,然后
再建立程序却一点问题没有。求高手们帮我解决一下这个问题???最好不要重装。。谢谢

解决方案 »

  1.   

    你肯定装过两遍,可能版本一样也可能是不同版本的Visual Studio.
      

  2.   

    see this:invalid file or disk full: cannot seek to locationThe tool could not read or write to location in a memory-mapped file.Possible causes Disk full. 
    Free up some space and link again. Trying to link over a network. 
    Some networks do not fully support the memory-mapped files used by the linker. Try linking on your local disk. Bad block on your disk. 
    Although the operating system and disk hardware should have detected such an error, you may want to run a disk-checking program. 
      

  3.   

    project->setting->link
    object/library modules里把ole32.lib加进去试试
      

  4.   

    楼上的我照着做了一下,可是错误变了
    --------------------Configuration: 1 - Win32 Debug--------------------
    Compiling resources...
    Compiling...
    StdAfx.cpp
    Compiling...
    1.cpp
    MainFrm.cpp
    1Doc.cpp
    1View.cpp
    Generating Code...
    Linking...
    msvcrtd.lib(MSVCRTD.dll) : fatal error LNK1190: invalid fixup found, type 0x1443
    Error executing link.exe.1.exe - 1 error(s), 0 warning(s)不知道为什么???郁闷死了。。