pthreads

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

pthreads

1,498 次查看
snirnisim
Contributor III

hello everyone,

when i'm using eclipse to build an application that is using threads, i have to attach the library pthread in order that the

#include <pthread.h> will resolved.

  • is it possible to run a program that uses threads on the min bootable FS LTIB generates? i've created this filesystem and added some pacakges for my project.
  • is there anything i need to change on the build process while cross compiling except from the regular settings for builder linker and assembler and the linker add library path?

thanks,

snir.

标签 (1)
0 项奖励
回复
1 回复

1,282 次查看
IvicaEftimovski
Contributor III

Nope, you don't need anything extra to add to use pthread aside from the include and the lib. Try changing the “hello world”  to thread example and it should compile just fine. I have used the lib without any issues on minimal ltib build.

0 项奖励
回复