程序编译的时候没有错误,可是构建的时候就出来下面这些错误,请问大家是怎么回事啊…… createLine.obj : error LNK2001: unresolved external symbol _acrxSysRegistry createLine.obj : error LNK2001: unresolved external symbol "public: static void __cdecl AcDbObject::operator delete(void *)" (??3AcDbObject@@SAXPAX@Z) createLine.obj : error LNK2001: unresolved external symbol "public: enum Acad::ErrorStatus __thiscall AcDbBlockTableRecord::appendAcDbEntity(class AcDbObjectId &,class AcDbEntity *)" (?appendAcDbEntity@AcDbBlockTableRecord@@QAE?AW4ErrorStatus@Acad@@ AAVAcDbObjectId@@PAVAcDbEntity@@@Z) createLine.obj : error LNK2001: unresolved external symbol "public: enum Acad::ErrorStatus __thiscall AcDbObject::close(void)" (?close@AcDbObject@@QAE?AW4ErrorStatus@Acad@@XZ) createLine.obj : error LNK2001: unresolved external symbol "public: enum Acad::ErrorStatus __thiscall AcDbBlockTable::getAt(char const *,class AcDbBlockTableRecord * &,enum AcDb::OpenMode,bool)const " (?getAt@AcDbBlockTable@@QBE?AW4ErrorStatus@Acad@ @PBDAAPAVAcDbBlockTableRecord@@W4OpenMode@AcDb@@_N@Z) createLine.obj : error LNK2001: unresolved external symbol "public: __thiscall AcDbLine::AcDbLine(class AcGePoint3d const &,class AcGePoint3d const &)" (??0AcDbLine@@QAE@ABVAcGePoint3d@@0@Z) createLine.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl AcDbObject::operator new(unsigned int)" (??2AcDbObject@@SAPAXI@Z) createLine.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGePoint3d::AcGePoint3d(double,double,double)" (__imp_??0AcGePoint3d@@QAE@NNN@Z) createLine.obj : error LNK2001: unresolved external symbol "bool __cdecl acrxRegisterAppMDIAware(void *)" (?acrxRegisterAppMDIAware@@YA_NPAX@Z) createLine.obj : error LNK2001: unresolved external symbol "public: static class AcRxClass * __cdecl AcRxDynamicLinker::desc(void)" (?desc@AcRxDynamicLinker@@SAPAVAcRxClass@@XZ) createLine.obj : error LNK2001: unresolved external symbol "public: enum Acad::ErrorStatus __thiscall AcDbDatabase::getSymbolTable(class AcDbBlockTable * &,enum AcDb::OpenMode)" (?getSymbolTable@AcDbDatabase@@QAE?AW4ErrorStatus@Acad@@AAPAVAcDbBlockT able@@W4OpenMode@AcDb@@@Z) createLine.obj : error LNK2001: unresolved external symbol "public: static class AcRxClass * __cdecl AcEdCommandStack::desc(void)" (?desc@AcEdCommandStack@@SAPAVAcRxClass@@XZ) createLine.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class AcDbHostApplicationServices * s_pServices" (__imp_?s_pServices@@3PAVAcDbHostApplicationServices@@A) LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/createLine.exe : fatal error LNK1120: 14 unresolved externals 执行 link.exe 时出错. |