我正在尝试构建ACE和TAO环境,但遇到了许多错误。
我安装ACE和TAO的步骤是:
#定义代码heree ACE_HAS_WINNT4 1
#定义ACE_HAS_STANDARD_CPP_LIBRARY 1
#定义ACE_HAS_MFC 1
#定义THR_USE_AFX 1
#定义ACE_USES_STATIC_MFC 1
#定义ACE_AS_STATIC_LIBS 1
#定义ACE_NO_INLINE
#包括"ace/config-win32.h“
经过很长一段时间,大多数项目都是成功建成的。Scheduling_Service、Time_Service_Clerk、NT_Notify_Service、Naming_Service (可能很少有其他项目)有错误(错误LNK2001:未解决的外部符号"__declspec(dllimport) public:.“)。
__unwindfunclet$??0TAO_Scheduling_Service@@QAE@XZ$0 1>Scheduling_Service.obj : error LNK2019:未解决的外部符号"__declspec(dllimport) public:__thiscall TAO_ORB_Manager::~TAO_ORB_Manager(void)“(__imp_??1TAO_ORB_Manager@@QAE@XZ)在函数TAO_ORB_Manager::~TAO_ORB_Manager 1>Scheduling_Service.obj中引用: error LNK2019:未决外部符号"__declspec(dllimport) public:__thiscall TAO_ORB_Manager::TAO_ORB_Manager(类CORBA::ORB *,class PortableServer::POA *,类PortableServer::POAManager *)“函数中引用的(__imp_??0TAO_ORB_Manager@@QAE@PAVORB@CORBA@@PAVPOA@PortableServer@@PAVPOAManager@4@@Z) "public:__thiscall TAO_Scheduling_Service::TAO_Scheduling_Service(void)”(??0TAO_Scheduling_Service@@QAE@XZ) 1>Scheduling_Service.obj : error LNK2019:未决外部符号"__declspec(dllimport) public:__declspec __thiscall CosNaming::Name:~Name(Void)“(__imp_??1Name@CosNaming@@UAE@XZ)函数中引用的"public: int __thiscall TAO_Scheduling_Service::init(int,char ** const)“(?init@TAO_Scheduling_Service@@QAEHHQAPAD@Z) 1>TAO_RTSchedd.lib(Scheduler_Factory.obj):error LNK2001:未解决的外部符号"__declspec(dllimport) public:__declspec __thiscall CosNaming::Name:~Name(Void)”(__imp_??1Name@CosNaming@@UAE@XZ) 1>Scheduling_Service.obj : error LNK2019:未解决的外部符号"__declspec(dllimport) public: struct CosNaming::NameComponent & __thiscall TAO::unbounded_“函数引用的(__imp_??A?$unbounded_value_sequence@UNameComponent@CosNaming@@@TAO@@QAEAAUNameComponent@CosNaming@@I@Z)”value_sequence::operatorunsigned int公共: int __thiscall TAO_Scheduling_Service::init(int,char ** const)“(?init@TAO_Scheduling_Service@@QAEHHQAPAD@Z) 1>TAO_RTSchedd.lib(Scheduler_Factory.obj):error LNK2001:未解决的外部符号"__declspec(dllimport) public: struct::NameComponent& __thiscall __thiscall
有人知道这个问题吗?非常感谢。
发布于 2018-03-26 11:53:02
除非您使用的是为静态使用而生成的Visual项目,否则不应该使用#define ACE_AS_STATIC_LIBS 1。目前,您想要进行静态构建,必须使用MPC重新生成Visual项目
https://stackoverflow.com/questions/49485642
复制相似问题