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.

Auto generated API documentation and code listings for problem-app

Code

foldertest1.c [code]
foldertest1.h [code]
foldertest2.c [code]
foldertest2.h [code]
main.cpp [code]