0

right now am working on cortexm3 processor evaluation kit in microsemi softconsole platform.In that am trying multithread programming.If i run my multithreading code in soft console workspace. it will show the following errors 1)make:***[hello_world.o]error 1 2)semaphore.h no such file or dictionary
Even though if i included semaphore.h it is showing no such file is included..if any one know solutions for the above 2 queries let me know

thank you sachith

artless noise
  • 21,212
  • 6
  • 68
  • 105

1 Answers1

0

If you want to run a multithreaded application just add a LDFLAG -lpthread during compilation

you can refer to following page for the usage

Difference between -pthread and -lpthread while compiling

EDIT: for e.g.---> arm-uclinuxeabi-gcc -CFLAGS filename.c -o fileoutput -L -lpthread

Community
  • 1
  • 1
G.ONE
  • 507
  • 1
  • 5
  • 14