AnsweredAssumed Answered

Kinetis Design Studio - enabling C++ in KSDK projects

Question asked by Attila Tőkés on Jun 22, 2016
Latest reply on Jun 28, 2016 by Marek Trmac

I would like to use C++ in a project generated with KSDK Project Generator 2.1 (board FRDM-K82F). I imported the project into Kinetis Design Studio. It was all ok until that point.

 

I added a simple C++ class in a .hpp files and included that into the main.c. I got some compile errors. This was somewhat expected, as I tried to use C++ in a C file. So, I renamed the main.c to main.cpp, but I'm getting the following error: "(.text+0x4a): undefined reference to `main'". As I saw the main.cpp is not even compiled.

 

Any idea what is the problem?

Outcomes