How to add protothreads library to the mbed compiler?

02 Nov 2010

Hi, I am trying to write a small protothreads code for some application. The moment i add #include "pt.h" in the mbed compiler and compile the code, the error message is shown saying that "Cannot open source file "pt.h"..

 

Can someone help me with this.

 

Thanks

02 Nov 2010

What is protothreads? I've never heard of it. Since it's not a part of standard C or C++ libraries, you will have to provide your own implementation in your project.

02 Nov 2010 . Edited: 02 Nov 2010

Try pasting the pt.h code into your source code file.