我编的程序是关于图像处理的,一开始我用的是“As a statically Linked Library”生成的程序框架,编写图像采集,以及部分图像处理的程序时用debug调试时还能正确显示全局变量,但我后来编写梯度锐化程序时,就不能正确显示全局变量了,调试错误信息为:
FIX: CXX0033 Error in OMF Type from Forward Class Declaration 
大家能不能帮个忙,谢谢!

解决方案 »

  1.   

    可能是该库没有调试信息吧error in OMF type informationThe executable file did not have a valid OMF (Object Module Format) for debugging.Possible causes The executable file was not created with the linker released with this version of Visual C++. Relink the object code using the current version of LINK.exe. 
    The .exe file may have been corrupted. Recompile and relink the program. 
    This error is identical to CAN0033.
      

  2.   

    动态连接是运行时动态载入含有函数代码的DLL,好处是可以多个实例(其他用到这个库的也是)可以共享同一份库的代码
    静态连接就没有这个好处,一份实例,一份库的代码.你的问题要讲的详细一些
      

  3.   

    那我现在要是在project->setting中把As a statically Linked Library”改为As a shared Linked Library,是不是只是生成的程序占的空间大一些,其他没有什麽影响。
      我发现有的程序打开时在classView那一栏中不能显示该程序的类,而显示“0 files left to load”.这是什么原因?