我们知道Solaris 10不支持SIGEV_THREAD,但我需要在Solaris 10中安装我的任务Scheduler。所以我从google和所有其他所需文件中获取了 timer_create.c 的代码。
所以现在我正在尝试编译我的代码,下面给出了错误:
bash-3.2$ g++ -I./ -std=c++11 -o sol10 *.cpp
Undefined first referenced
symbol in file
__timer_mutex /var/tmp//ccVywNSJ.o
_Z20__timer_thread_startP11thread_node /var/tmp//ccVywNSJ.o
_Z13__timer_allocv /var/tmp//ccVywNSJ.o
__timer_signal_thread_rclk /var/tmp//ccVywNSJ.o
__timer_init_failed /var/tmp//ccVywNSJ.o
_Z15__timer_deallocP10timer_node /var/tmp//ccVywNSJ.o
_Z20__timer_thread_allocPK13_pthread_attri /var/tmp//ccVywNSJ.o
_Z17__timer_init_oncev /var/tmp//ccVywNSJ.o
_Z22__timer_thread_deallocP11thread_node /var/tmp//ccVywNSJ.o
_Z28__timer_thread_find_matchingPK13_pthread_attri /var/tmp//ccVywNSJ.o
__timer_init_once_control /var/tmp//ccVywNSJ.o
ld: fatal: symbol referencing errors. No output written to sol10
.
我无法得到此错误,请帮我解决这个问题。 在此先感谢:)