pthreads

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pthreads

799 Views
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.

Labels (1)
0 Kudos
1 Reply

583 Views
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 Kudos