注册 登录
编程论坛 C++教室

c++网络编程问题

qkhhss 发布于 2010-12-06 18:05, 501 次点击
我用的是dev_c++ mingw32, 刚刚装完ACE-5.4.4 TAO-1.4.4
运行测试程序时出现这个问题,哪位高手帮我解决一下?
#include "ace/OS.h"
int main ()
{
  return 0;
}

44 D:\Dev-Cpp\include\ace\config-win32.h:36,from D:\Dev-Cpp\include\ace\config.h In file included from D:/Dev-Cpp/include/ace/configwin32.h:36,               from D:/Dev-Cpp/include/ace/config.h
6 D:\Dev-Cpp\include\ace\OS_NS_stdio.h:414,               from D:\Dev-Cpp\include\ace\OS_NS_arpa_inet.inl                  from D:/Dev-Cpp/include/ace/OS_NS_stdio.h:414,               from D:/Dev-Cpp/include/ace/OS_NS_arpa_inet.inl
3 回复
#2
qkhhss2010-12-06 18:05
6 D:\Dev-Cpp\include\ace\OS_NS_stdio.h:414,               from D:\Dev-Cpp\include\ace\OS_NS_arpa_inet.inl                  from D:/Dev-Cpp/include/ace/OS_NS_stdio.h:414,               from D:/Dev-Cpp/include/ace/OS_NS_arpa_inet.inl
#3
qkhhss2010-12-06 18:06
351:4 D:\Dev-Cpp\include\ace\config-win32-common.h #error You must link against multi-threaded libraries when using ACE (check your project settings)
#4
qkhhss2010-12-06 18:58
执行  g++.exe...
g++.exe "D:/clang/net002.cpp" -o "D:/clang/net002.exe"   -g3  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"   -L"C:/Dev-Cpp/lib" -g3
In file included from C:/Dev-Cpp/include/ace/config-win32.h:36,
                 from C:/Dev-Cpp/include/ace/config.h:44,
                 from C:/Dev-Cpp/include/ace/config-lite.h:24,
                 from C:/Dev-Cpp/include/ace/config-all.h:20,
                 from C:/Dev-Cpp/include/ace/OS.h:20,
                 from D:/clang/net002.cpp:1:

C:/Dev-Cpp/include/ace/config-win32-common.h:351:4: #error You must link against multi-threaded libraries when using ACE (check your project settings)
In file included from C:/Dev-Cpp/include/ace/Time_Value.h:382,
                 from C:/Dev-Cpp/include/ace/OS_NS_unistd.h:29,
                 from C:/Dev-Cpp/include/ace/OS_NS_stdio.inl:4,
                 from C:/Dev-Cpp/include/ace/OS_NS_stdio.h:414,
                 from C:/Dev-Cpp/include/ace/OS_NS_arpa_inet.inl:6,

                 from C:/Dev-Cpp/include/ace/OS_NS_arpa_inet.h:70,
                 from C:/Dev-Cpp/include/ace/OS.h:30,
                 from D:/clang/net002.cpp:1:
C:/Dev-Cpp/include/ace/Time_Value.inl:73: warning: 'void ACE_Time_Value::set(const timeval&)' defined locally after being referenced with dllimport linkage

1