9 years, 6 months ago.

Why there are only header files (.h)?

There are only the definitions of the classes/functions/etc in these hedaer files. Where is the syntax of these classes/functions/etc (.c or .cpp files)?

Question relating to:

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

And how can the code be compiled without the c/cpp files?

posted by Manos Kav 01 Oct 2014

1 Answer

9 years, 6 months ago.

You only need header files for a pre-compiled library which is why there are no cpp files..

If you want the full code then take a look at http://mbed.org/users/mbed_official/code/mbed-src/

If you use mbed-src in place of the standard mbed library the results should be identical but take a little longer to compile. However the src library is the live development branch of the code rather than a tested stable release so this isn't recommended if you can avoid it.

Accepted Answer

Thank you. Just wanted to see them for programming purposes only.

posted by Manos Kav 01 Oct 2014