1 year, 7 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

1 year, 7 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