我按照ACE-INSTALL.html里面的要求编译过了ACE,但是我编译我自己的程序时,我的程序编译能通过,但是总是出现连接错误,错误如下:
Linking...
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall ACE_OS_Object_Manager::~ACE_OS_Object_Manager(void)" (__imp_??1ACE_OS_Object_Manager@@UAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall ACE_Object_Manager::~ACE_Object_Manager(void)" (__imp_??1ACE_Object_Manager@@UAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_Object_Manager::ACE_Object_Manager(void)" (__imp_??0ACE_Object_Manager@@QAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_OS_Object_Manager::ACE_OS_Object_Manager(void)" (__imp_??0ACE_OS_Object_Manager@@QAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall ACE_SOCK_Stream::close(void)" (__imp_?close@ACE_SOCK_Stream@@QAEHXZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl ACE::write_n(void *,void const *,unsigned int,unsigned int *)" (__imp_?write_n@ACE@@SAHPAXPBXIPAI@Z)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall ACE_SOCK_IO::recv(void *,unsigned int,class ACE_Time_Value const *)const " (__imp_?recv@ACE_SOCK_IO@@QBEHPAXIPBVACE_Time_Value@@@Z)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall ACE_SOCK_Stream::sendv_n(struct iovec const * const,int,class ACE_Time_Value const *,unsigned int *)const " (__imp_?sendv_n@ACE_SOCK_Stream@@QBEHQB
Uiovec@@HPBVACE_Time_Value@@PAI@Z)
TestWeb.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)" (__imp
_?connect@ACE_SOCK_Connector@@QAEHAAVACE_SOCK_Stream@@ABVACE_Addr@@PBVACE_Time_Value@@1HHH@Z)
TestWeb.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)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Connector::~ACE_SOCK_Connector(void)" (__imp_??1ACE_SOCK_Connector@@QAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Stream::~ACE_SOCK_Stream(void)" (__imp_??1ACE_SOCK_Stream@@QAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall ACE_INET_Addr::~ACE_INET_Addr(void)" (__imp_??1ACE_INET_Addr@@UAE@XZ)
TestWeb.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)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_INET_Addr::ACE_INET_Addr(void)" (__imp_??0ACE_INET_Addr@@QAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Stream::ACE_SOCK_Stream(void)" (__imp_??0ACE_SOCK_Stream@@QAE@XZ)
TestWeb.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_SOCK_Connector::ACE_SOCK_Connector(void)" (__imp_??0ACE_SOCK_Connector@@QAE@XZ)
Debug/TestWeb.exe : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.TestWeb.exe - 18 error(s), 0 warning(s)
是不是我的库那里没配好,请大侠们给我指点一下迷津,谢谢啦