iCAx开思工具箱

标题: CAA调试错误 [打印本页]

作者: cupcake    时间: 2005-1-20 14:13
标题: CAA调试错误
各位高手:
      我出现了一个调试错误,是由于加了如下代码:
  if ( NULL_var != ResultBody )
  {
   CATLISTP(CATCell) vListOfCells;  
   int nCellType = 0;
   ResultBody->GetAllCells(vListOfCells, nCellType);  
       for(int i=1;i<=vListOfCells.Size();++i)  
         {  
           if(NULL!=vListOfCells)
             {   
                cout<<"vListOfCells" << i<<"!=NULL" <<endl;
             }
         }       
}  
错误如下:
  
## start step: link2nd   at 01/20/2005-14:15:19
# make: fr2\m2.m intel_a\code\bin\m2.dll
btlBox.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CATListPtrCATCell::~CATListPtrCATCell(void)" (__imp_??1CATListPtrCATCell@@UAE@XZ)
btlBox.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CATCell * & __thiscall CATListPtrCATCell:perator[](int)" (__imp_??ACATListPtrCATCell@@QAEAAPAVCATCell@@H@Z)
btlBox.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall CATListPtrCATCell::Size(void)const " (__imp_?Size@CATListPtrCATCell@@QBEHXZ)
btlBox.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CATListPtrCATCell::CATListPtrCATCell(int)" (__imp_??0CATListPtrCATCell@@QAE@H@Z)
F:\CAA\followed6\followed\.\intel_a\code\bin\m2.dll : fatal error LNK1120: 4 unresolved externals
# make-ERROR: intel_a\code\bin\m2.dll
## end   step: link2nd   at 01/20/2005-14:15:20
  
== Command done, return code = 0
  
Tool returned code: 0  
应该是IdentityCard.h和.mk文件的错误吧,或者是少包含了什么头文件,请高手指点,谢谢。
      
作者: acoka    时间: 2005-1-20 16:02
你找CATCell的东西啦
作者: cupcake    时间: 2005-1-20 16:27
#include "CATCell.h"这条语句已经有了,还有别的要加吗?比如在
IdentityCard.h和.mk文件中?
作者: acoka    时间: 2005-1-20 17:07
cupcake wrote:
#include "CATCell.h"这条语句已经有了,还有别的要加吗?比如在  
  
  IdentityCard.h
NewTopologicalObjects
  
和.mk文件中?  
CATTopologicalObjects
  

作者: cupcake    时间: 2005-1-20 19:33
acoka兄,谢谢你了,问题解决了。




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3