|
楼主 |
发表于 2008-7-29 22:55:55
|
显示全部楼层
错误太多了. 我编译ace是用cygwin, 安装在c:\cygwin, devcpp也是安装在c盘, 看了某些错误说找不到"cygwin/version.", 怎么会这样? 我的dev-cpp都包含MinGW的, 现在只是include ace相关的头文件, 怎么会跟cygwin关连起来呢? 太长了, 下面只是copy部分异常. (顺便提一下, 在编译ace的完成后,我尝试编译tests里面的example, 但最终没有成功, 总有提示"无效cpu指令"什么的). 下面的g++还把tests目录作为include目录了, 实际上我在dev-cpp里并没有把它添加为include, 只是把ACE_ROOT添加为include的目录.
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\mytest\p1\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\mytest\p1\Makefile.win" resouce_test.o
g++.exe -c resouce_test.cpp -o resouce_test.o -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" -I"E:/ACE56SRC/ACE_wrappers" -I"E:/ACE56SRC/ACE_wrappers/tests"
In file included from E:/ACE56SRC/ACE_wrappers/ace/config.h:1,
from E:/ACE56SRC/ACE_wrappers/ace/config-macros.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/config-lite.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/ACE_export.h:11,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/config-cygwin32.h:44:33: cygwin/version.h: No such file or directory
E:/ACE56SRC/ACE_wrappers/ace/config-cygwin32.h:48:27: features.h: No such file or directory
E:/ACE56SRC/ACE_wrappers/ace/config-cygwin32.h:206:33: warning: no newline at end of file
In file included from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_fcntl.h:79,
from E:/ACE56SRC/ACE_wrappers/ace/Flag_Manip.inl:5,
from E:/ACE56SRC/ACE_wrappers/ace/Flag_Manip.h:54,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/OS_NS_fcntl.inl: In function `int ACE_OS::fcntl(ACE_HANDLE, int, long int)':
E:/ACE56SRC/ACE_wrappers/ace/OS_NS_fcntl.inl:19: error: `::fcntl' has not been declared
In file included from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.h:32,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.inl:5,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.h:92,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/os_include/os_stropts.h:42:30: sys/ioctl.h: No such file or directory
In file included from E:/ACE56SRC/ACE_wrappers/ace/os_include/sys/os_wait.h:28,
from E:/ACE56SRC/ACE_wrappers/ace/os_include/os_stdlib.h:28,
from E:/ACE56SRC/ACE_wrappers/ace/Basic_Types.h:60,
from E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:33,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_unistd.h:29,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.inl:6,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.h:168,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.inl:5,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.h:92,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/os_include/sys/os_resource.h:31:33: sys/resource.h: No such file or directory
In file included from E:/ACE56SRC/ACE_wrappers/ace/os_include/sys/os_wait.h:28,
from E:/ACE56SRC/ACE_wrappers/ace/os_include/os_stdlib.h:28,
from E:/ACE56SRC/ACE_wrappers/ace/Basic_Types.h:60,
from E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:33,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_unistd.h:29,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.inl:6,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.h:168,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.inl:5,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.h:92,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/os_include/sys/os_resource.h: At global scope:
E:/ACE56SRC/ACE_wrappers/ace/os_include/sys/os_resource.h:83: error: `rusage' does not name a type
In file included from E:/ACE56SRC/ACE_wrappers/ace/os_include/os_stdlib.h:28,
from E:/ACE56SRC/ACE_wrappers/ace/Basic_Types.h:60,
from E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:33,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_unistd.h:29,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.inl:6,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.h:168,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.inl:5,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.h:92,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/os_include/sys/os_wait.h:31:29: sys/wait.h: No such file or directory
In file included from E:/ACE56SRC/ACE_wrappers/ace/Basic_Types.h:60,
from E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:33,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_unistd.h:29,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.inl:6,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.h:168,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.inl:5,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.h:92,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/os_include/os_stdlib.h:48: error: `u_int' does not name a type
In file included from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_unistd.h:29,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.inl:6,
from E:/ACE56SRC/ACE_wrappers/ace/OS_NS_stropts.h:168,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.inl:5,
from E:/ACE56SRC/ACE_wrappers/ace/IPC_SAP.h:92,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK.h:24,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_IO.h:18,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Stream.h:17,
from E:/ACE56SRC/ACE_wrappers/ace/SOCK_Acceptor.h:17,
from resouce_test.cpp:2:
E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:97: error: expected `,' or `...' before '&' token
E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:97: error: ISO C++ forbids declaration of `timespec_t' with no type
E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:115: error: expected `,' or `...' before '&' token
E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:115: error: ISO C++ forbids declaration of `timespec_t' with no type
E:/ACE56SRC/ACE_wrappers/ace/Time_Value.h:157: error: `timespec_t' has not been declared |
|