mildcat 发表于 2014-8-18 18:57:10

UG NX 二次开发编译报错,链接问题

正在创建库 C:\workspace\ProjectDev\CoreMoldDesign\code\pandoraBox\x64\Debug\/pandoraBox.lib 和对象 C:\workspace\ProjectDev\CoreMoldDesign\code\pandoraBox\x64\Debug\/pandoraBox.exp
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Features::Feature * __cdecl NXOpen::Features::FeatureBuilder::CommitFeature(void)" (__imp_?CommitFeature@FeatureBuilder@Features@NXOpen@@QEAAPEAVFeature@23@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::Features::FeatureBuilder::SetParentFeatureInternal(bool)" (__imp_?SetParentFeatureInternal@FeatureBuilder@Features@NXOpen@@QEAAX_N@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::GeometricUtilities::SmartVolumeProfileBuilder::SetOpenProfileSmartVolumeOption(bool)" (__imp_?SetOpenProfileSmartVolumeOption@SmartVolumeProfileBuilder@GeometricUtilities@NXOpen@@QEAAX_N@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::GeometricUtilities::SmartVolumeProfileBuilder::SetCloseProfileRule(enum NXOpen::GeometricUtilities::SmartVolumeProfileBuilder::CloseProfileRuleType)" (__imp_?SetCloseProfileRule@SmartVolumeProfileBuilder@GeometricUtilities@NXOpen@@QEAAXW4CloseProfileRuleType@123@@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::Features::ExtrudeBuilder::SetSection(class NXOpen::Section *)" (__imp_?SetSection@ExtrudeBuilder@Features@NXOpen@@QEAAXPEAVSection@3@@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::Features::ExtrudeBuilder::SetDirection(class NXOpen::Direction *)" (__imp_?SetDirection@ExtrudeBuilder@Features@NXOpen@@QEAAXPEAVDirection@3@@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::Features::ExtrudeBuilder::SetDistanceTolerance(double)" (__imp_?SetDistanceTolerance@ExtrudeBuilder@Features@NXOpen@@QEAAXN@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::GeometricUtilities::BooleanOperation * __cdecl NXOpen::Features::ExtrudeBuilder::BooleanOperation(void)" (__imp_?BooleanOperation@ExtrudeBuilder@Features@NXOpen@@QEAAPEAV0GeometricUtilities@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::GeometricUtilities::MultiDraft * __cdecl NXOpen::Features::ExtrudeBuilder::Draft(void)" (__imp_?Draft@ExtrudeBuilder@Features@NXOpen@@QEAAPEAVMultiDraft@GeometricUtilities@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::GeometricUtilities::FeatureOffset * __cdecl NXOpen::Features::ExtrudeBuilder::Offset(void)" (__imp_?Offset@ExtrudeBuilder@Features@NXOpen@@QEAAPEAVFeatureOffset@GeometricUtilities@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::GeometricUtilities::Limits * __cdecl NXOpen::Features::ExtrudeBuilder::Limits(void)" (__imp_?Limits@ExtrudeBuilder@Features@NXOpen@@QEAAPEAV0GeometricUtilities@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::GeometricUtilities::SmartVolumeProfileBuilder * __cdecl NXOpen::Features::ExtrudeBuilder::SmartVolumeProfile(void)" (__imp_?SmartVolumeProfile@ExtrudeBuilder@Features@NXOpen@@QEAAPEAVSmartVolumeProfileBuilder@GeometricUtilities@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::Features::ExtrudeBuilder::AllowSelfIntersectingSection(bool)" (__imp_?AllowSelfIntersectingSection@ExtrudeBuilder@Features@NXOpen@@QEAAX_N@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Features::ExtrudeBuilder * __cdecl NXOpen::Features::FeatureCollection::CreateExtrudeBuilder(class NXOpen::Features::Feature *)" (__imp_?CreateExtrudeBuilder@FeatureCollection@Features@NXOpen@@QEAAPEAVExtrudeBuilder@23@PEAVFeature@23@@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Features::Feature * __cdecl NXOpen::Features::FeatureCollection::FindObject(char const *)" (__imp_?FindObject@FeatureCollection@Features@NXOpen@@QEAAPEAVFeature@23@PEBD@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::GeometricUtilities::BooleanOperation::SetType(enum NXOpen::GeometricUtilities::BooleanOperation::BooleanType)" (__imp_?SetType@BooleanOperation@GeometricUtilities@NXOpen@@QEAAXW4BooleanType@123@@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl NXOpen::GeometricUtilities::BooleanOperation::SetTargetBodies(class std::vector<class NXOpen::Body *,class std::allocator<class NXOpen::Body *> > const &)" (__imp_?SetTargetBodies@BooleanOperation@GeometricUtilities@NXOpen@@QEAAXAEBV?$vector@PEAVBody@NXOpen@@V?$allocator@PEAVBody@NXOpen@@@std@@@std@@@Z),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Expression * __cdecl NXOpen::GeometricUtilities::Extend::Value(void)" (__imp_?Value@Extend@GeometricUtilities@NXOpen@@QEAAPEAVExpression@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Expression * __cdecl NXOpen::GeometricUtilities::FeatureOffset::StartOffset(void)" (__imp_?StartOffset@FeatureOffset@GeometricUtilities@NXOpen@@QEAAPEAVExpression@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Expression * __cdecl NXOpen::GeometricUtilities::FeatureOffset::EndOffset(void)" (__imp_?EndOffset@FeatureOffset@GeometricUtilities@NXOpen@@QEAAPEAVExpression@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::GeometricUtilities::Extend * __cdecl NXOpen::GeometricUtilities::Limits::StartExtend(void)" (__imp_?StartExtend@Limits@GeometricUtilities@NXOpen@@QEAAPEAVExtend@23@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::GeometricUtilities::Extend * __cdecl NXOpen::GeometricUtilities::Limits::EndExtend(void)" (__imp_?EndExtend@Limits@GeometricUtilities@NXOpen@@QEAAPEAVExtend@23@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Expression * __cdecl NXOpen::GeometricUtilities::MultiDraft::FrontDraftAngle(void)" (__imp_?FrontDraftAngle@MultiDraft@GeometricUtilities@NXOpen@@QEAAPEAVExpression@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Expression * __cdecl NXOpen::GeometricUtilities::MultiDraft::BackDraftAngle(void)" (__imp_?BackDraftAngle@MultiDraft@GeometricUtilities@NXOpen@@QEAAPEAVExpression@3@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __cdecl NXOpen::Preferences::PartModeling::GetHistoryMode(void)" (__imp_?GetHistoryMode@PartModeling@Preferences@NXOpen@@QEAA_NXZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>pandoraBoxUI.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class NXOpen::Preferences::PartModeling * __cdecl NXOpen::Preferences::PartPreferences::Modeling(void)" (__imp_?Modeling@PartPreferences@Preferences@NXOpen@@QEAAPEAVPartModeling@23@XZ),该符号在函数 "public: int __cdecl pandoraBoxUI::apply_cb(void)" (?apply_cb@pandoraBoxUI@@QEAAHXZ) 中被引用
1>C:\workspace\ProjectDev\CoreMoldDesign\code\pandoraBox\x64\Debug\/pandoraBox.dll : fatal error LNK1120: 26 个无法解析的外部命令

花在人间 发表于 2014-8-20 13:37:16

?这是什么玩意

admin 发表于 2014-8-22 08:54:00

这个问题已经解决

如果一台电脑上 安装了很多版本的NX

开发环境很可能乱掉,调用的库有问题
页: [1]
查看完整版本: UG NX 二次开发编译报错,链接问题