supremainc / BioStar2_device_SDK

35 stars 25 forks source link

linux build error `pthread_yield' #20

Open ogimenezb opened 2 years ago

ogimenezb commented 2 years ago

Newer Linux Versions:

libBS_SDK_V2.so: undefined reference to `pthread_yield'
Use sched_yield() instead of pthread_yield() on Linux

Per https://man7.org/linux/man-pages/man3/pthread_yield.3.html
        This call is nonstandard, but present on several other systems.
        Use the standardized sched_yield(2) instead.

Could you please update .

Thanks

felet commented 1 year ago

I also have this issue. Please replace pthread_yield since it is does not exist in GNU C Library since version 2.34. We cannot use your library until this is fixed.