Hello Zhang Jun,
thanks for your feedback. I know Erich’s blog, and I like it very much.
Erich says in his blog:
“Bare Projects with C++
If using C++ with a bare project type, then everything is setup correctly. You only need to make sure that header files included for C++ files are listed in the compiler include path settings:”
This means I shouldn’t have any problems, but I do.
The only things I did was renaming main.c to main.cpp and added the include instruction
#include <core_cm4.h>
#include <core_cmInstr.h>
#include <core_cmFunc.h>
This Blog is abound Version 1.1.1. Maybe something changed to the current Version?
Thanks and regards
Markus