|
创建任务编译失败.编译器路径/opt/EmbedSky/4.3.3/bin,代码如下.
#include <sys/time.h>
//#include <sys/ipc.h>
#include <sys/msg.h>
#include <semaphore.h>
#include <time.h>
#include <errno.h>
#include <assert.h>
#include <unistd.h>
if(pthread_create(&task, &attr, (void *)func, param) == 0)
{
return task;
}
54: error: implicit declaration of function 'pthread_attr_init'
59: error: implicit declaration of function 'pthread_attr_setstacksize'
61: error: implicit declaration of function 'pthread_create'
In function 'hl_rtos_task_destroy':
:77: error: implicit declaration of function 'pthread_cancel' |
|