ACE 的问题?

ahyf 2004-04-05 04:26:16
编译的时候出下如下错误:
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl ace_os_main_i(class ACE_Main_Base &,int,char * * const)" (__imp_?ace_os_main_i@@YAHAAVACE_Main_Base@@HQAPAD@Z)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_Main_Base::ACE_Main_Base(void)" (__imp_??0ACE_Main_Base@@QAE@XZ)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall ACE_SOCK_Connector::connect(class ACE_SOCK_Stream &,class ACE_Addr const &,class ACE_Time_Value const *,class ACE_Addr const &,int,int,int,int)"
(__imp_?connect@ACE_SOCK_Connector@@QAEHAAVACE_SOCK_Stream@@ABVACE_Addr@@PBVACE_Time_Value@@1HHHH@Z)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class ACE_Addr const ACE_Addr::sap_any" (__imp_?sap_any@ACE_Addr@@2V1@B)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Connector::~ACE_SOCK_Connector(void)" (__imp_??1ACE_SOCK_Connector@@QAE@XZ)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Stream::~ACE_SOCK_Stream(void)" (__imp_??1ACE_SOCK_Stream@@QAE@XZ)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall ACE_INET_Addr::~ACE_INET_Addr(void)" (__imp_??1ACE_INET_Addr@@UAE@XZ)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall ACE_INET_Addr::set(unsigned short,char const * const,int,int)" (__imp_?set@ACE_INET_Addr@@QAEHGQBDHH@Z)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_INET_Addr::ACE_INET_Addr(void)" (__imp_??0ACE_INET_Addr@@QAE@XZ)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Stream::ACE_SOCK_Stream(void)" (__imp_??0ACE_SOCK_Stream@@QAE@XZ)
MainEnter.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Connector::ACE_SOCK_Connector(void)" (__imp_??0ACE_SOCK_Connector@@QAE@XZ)
...全文
110 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
sharkhuang 2004-04-06
  • 打赏
  • 举报
回复
他的所有test工程中都已经把aced,lib的连接做进去了.
yjh1982 2004-04-06
  • 打赏
  • 举报
回复
工程-->set-->link
ahyf 2004-04-06
  • 打赏
  • 举报
回复
“在连接中加入aced.lib”
怎么做?
kaphoon 2004-04-05
  • 打赏
  • 举报
回复
在编译时,在连接中加入aced.lib,还选择debug mutithread dll
当然,他的前提是用静态的debug
文档中讲的蛮详细的
ahyf 2004-04-05
  • 打赏
  • 举报
回复
config 怎么做?
#define ACE_HAS_STANDARD_CPP_LIBRARY 1

#include "ace/config-win32.h"
sharkhuang 2004-04-05
  • 打赏
  • 举报
回复
链接错误!是不是没有下载全或者config没做对?

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧