小编Cyn*_*neo的帖子

Slackware 14.2 64 位上的 ACE lib 编译错误

我正在尝试编译 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\n
In 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)

c++ linux compilation slackware ace

3
推荐指数
1
解决办法
1872
查看次数

标签 统计

ace ×1

c++ ×1

compilation ×1

linux ×1

slackware ×1