TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2640R2F pthread 函数编译问题

Hi TI JRs:

    我想把 pthread_attr_xxx 函数移植到 simple_broadcaster 里,单是一种编译不过,问题是在 link 时找不到 pthread_attr_xxx 的函数。

     我看 pthread_attr_xxx 系列函数是在 source\ti\posix\ccs\pthread.h 里的。

     而编译 simple_broadcaster 这个 example project 时 默认是不会编译 source\ti\posix\ccs 这个目录的。

      我做了如下的修改,请看下面图片:我在 CCS 的 simple_broadcaster  project 里增加了 ${SRC_BLE_DIR}/../../../source/ti/posix/ccs 这个 include file ,并在代码里增加了 #include <pthread.h>,这样编译还是出错。

    请问这是为什么?

     

undefined first referenced
symbol in file ——— —————-
pthread_attr_init <whole-program> pthread_attr_setdetachstate <whole-program> pthread_attr_setschedparam <whole-program> pthread_attr_setstacksize <whole-program> pthread_create <whole-program>

Kevin Qiu1:

已在e2echina.ti.com/…/192625

回复你

user6198971:

回复 Kevin Qiu1:

Hi kevin:
这个问题还没解决,那个帖子在找 UART_Write 函数的问题。
我想把 pthread_attr_xxx 函数移植到 simple_broadcaster 里,一共要改哪些呢?
我的 header 文件加的有问题吗?

谢谢

Kevin Qiu1:

回复 user6198971:

同一个问题集中到一个帖子讨论:e2echina.ti.com/…/594502

赞(1)
未经允许不得转载:TI中文支持网 » CC2640R2F pthread 函数编译问题
分享到: 更多 (0)