Application to showcase build problem when including mbed.h from .cpp and .c -files. Folder structure and nested #includes inside #ifndefX+#defineX+#endif obfuscate the reason. Compiler error is about 'keyword namespace not found', which happens when mbed.h is included from .c.

Committer:
MikkoZ
Date:
Tue Sep 27 07:13:58 2016 +0000
Revision:
0:7c2be109ea78
Example app of build problem. Initial version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MikkoZ 0:7c2be109ea78 1 #include "foldertest2/foldertest2/foldertest2.h"
MikkoZ 0:7c2be109ea78 2 //#include "mbed.h"
MikkoZ 0:7c2be109ea78 3 int main() {
MikkoZ 0:7c2be109ea78 4 bool led1 = false;
MikkoZ 0:7c2be109ea78 5 while (true) {
MikkoZ 0:7c2be109ea78 6 led1 = !led1;
MikkoZ 0:7c2be109ea78 7 Thread::wait(500);
MikkoZ 0:7c2be109ea78 8 }
MikkoZ 0:7c2be109ea78 9 }