我在redhat9 下编译ace-5.5时出错
由 ace_study 于 周五, 2006-04-07 11:05 提交。
我在redhat9 下编译ace-5.5时出错:
g++ -DHAVE_CONFIG_H -I../.. -I.. -DACE_HAS_ACE_TOKEN -DACE_HAS_ACE_SVCCONF -DACE_BUILD_DLL -W -Wall -Wpointer-arith -g -O2 -pthread -pipe -O3 -I. -I.. -MT libACE_la-OS_NS_Thread.lo -MD -MP -MF .deps/libACE_la-OS_NS_Thread.Tpo -c ../../ace/OS_NS_Thread.cpp -fPIC -DPIC -o .libs/libACE_la-OS_NS_Thread.o
../../ace/OS_NS_Thread.cpp: In function `int ACE_OS::thr_get_affinity(long
unsigned int, unsigned int, cpu_set_t*)':
../../ace/OS_NS_Thread.cpp:5051: invalid conversion from `cpu_set_t*' to `
unsigned int'
/usr/include/sched.h:73: too few arguments to function `int
sched_getaffinity(int, unsigned int, long unsigned int*)'
../../ace/OS_NS_Thread.cpp:5051: at this point in file
../../ace/OS_NS_Thread.cpp: In function `int ACE_OS::thr_set_affinity(long
unsigned int, unsigned int, const cpu_set_t*)':
../../ace/OS_NS_Thread.cpp:5097: invalid conversion from `const cpu_set_t*' to
`unsigned int'
/usr/include/sched.h:69: too few arguments to function `int
sched_setaffinity(int, unsigned int, long unsigned int*)'
../../ace/OS_NS_Thread.cpp:5097: at this point in file
make[3]: *** [libACE_la-OS_NS_Thread.lo] Error 1
make[3]: Leaving directory `/home/licai/ace/ACE_wrappers/build/ace'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/licai/ace/ACE_wrappers/build/ace'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/licai/ace/ACE_wrappers/build/ace'
make: *** [all-recursive] Error 1
怎样解决啊
有人遇到同样大问题吗??
