我正在尝试编译 ACE lib,但编译时出错。
\n\n我的Linux系统是Slackware 14.2 64位
\n\n该lib是ACE版本6.1.4(我需要编译的版本)
\n\n在发布本文之前,我已按照从ACE web构建 ACE 的所有步骤进行操作。
\n\n如何编译这个lib?
\n\n这是错误:
\n\nIn file included from /home/cyneo/Downloads/ACE_wrappers/ace/OS_NS_Thread.h:32,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Guard_T.h:26,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Free_List.cpp:7,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Free_List.h:142,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Malloc_T.h:26,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Local_Name_Space.h:20,\n from Local_Name_Space.cpp:3:\n/home/cyneo/Downloads/ACE_wrappers/ace/os_include/os_sched.h:47:6: error: conflicting declaration \xe2\x80\x98typedef struct cpu_set_t cpu_set_t\xe2\x80\x99\n} cpu_set_t;\n ^~~~~~~~~\n\nIn file included from /usr/include/sched.h:44,\n from /usr/include/pthread.h:23,\n from /home/cyneo/Downloads/ACE_wrappers/ace/os_include/os_pthread.h:51,\n from /home/cyneo/Downloads/ACE_wrappers/ace/OS_NS_Thread.h:31,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Guard_T.h:26,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Free_List.cpp:7,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Free_List.h:142,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Malloc_T.h:26,\n from /home/cyneo/Downloads/ACE_wrappers/ace/Local_Name_Space.h:20,\n from Local_Name_Space.cpp:3:\n/usr/include/bits/cpu-set.h:42:3: nota: previous declaration as \xe2\x80\x98typedef struct cpu_set_t cpu_set_t\xe2\x80\x99\n } cpu_set_t;\n\nIn file included …Run Code Online (Sandbox Code Playgroud)