4 years, 5 months ago.

how to include rtos.h in a program using threading?

I tried #include "rtos.h" but the online compiler keeps complaining it can't find the file.

Please HELP!

thanks Leonard Visser!

1 Answer

4 years, 5 months ago.

Hi Leonard,

Please check if there is mbed-os library under your project. If what you see is mbed library, that means you are using Mbed2, which doesn't support rtos.h, you need to import mbed-oslibrary.

Regards, Desmond