- 论坛徽章:
- 0
|
我用的是dev-c++, 从检查更新菜单,安装了ACE,
安装过程没有出错,
但是好像无法使用ACE,
用以下代码测试:
#include "ace/OS.h"
int main ()
{
return 0;
}
一按下编译,就出错,说ace需要多线程库,但是我找了dev-c++ 的工程编译属性,没有找到多线程配置选项。
有没有人指点一下?
编译日志如下:
执行 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
执行结束 |
|