debug版本没问题,release版全编就出现问题
AlarmFormView.obj : error LNK2001: unresolved external symbol "public: class CIEMDoc * __thiscall CAlarmFormView::GetDocument(void)" (?GetDocument@CAlarmFormView@@QAEPAVCIEMDoc@@XZ)
AlarmListView.obj : error LNK2001: unresolved external symbol "public: class CIEMDoc * __thiscall CAlarmListView::GetDocument(void)" (?GetDocument@CAlarmListView@@QAEPAVCIEMDoc@@XZ)
TaglistView.obj : error LNK2001: unresolved external symbol "public: class CIEMDoc * __thiscall CTaglistView::GetDocument(void)" (?GetDocument@CTaglistView@@QAEPAVCIEMDoc@@XZ)小妹已经困扰一上午了,请高手们赐教

解决方案 »

  1.   

    看看debug 和 release的Project Setting有什么不同.
      

  2.   

    顶楼上的!
    建议你将Debug下 Project->Setting->Link->Object/library modules下的内容复制一份到Relese下相同的位置!
      

  3.   

    此问题一般是由Release版本和debug版本差异造成的有时候,一些初始化就会出现此link错误,因为在release版本的处理是不同的
      

  4.   

    我以前有有过这样的问题是RELEASE和DEBUG的SETTING 不一样只要设置一下RELEASE和DEBUG一样就可以了
    你先试一下,不行的话,你发过来,我帮你调一下
      

  5.   

    看看Debug和Release下连接时的库模块设置。
      

  6.   

    Project->Setting->Link->Object/library modules下 DEBUG和release是一样的,可是还是不行
      

  7.   

    谢谢大家,问题解决了,是setting里的问题,需要修改category.