AnsweredAssumed Answered

How to configure processor expert project for C++ in KDS 3.2 ?

Question asked by kirti raje on Mar 19, 2018
Latest reply on Mar 21, 2018 by kirti raje



I am trying to create C++ project with processor expert bean in KDS 3.2  and KSDK 1.3. I am using MK64FN controller with processor expert enabled. I have gone through following links  for C++ settings.

Processor Expert, gcc C++ and Kinetis-L with MQXLite | MCU on Eclipse 

C++ with Kinetis Design Studio | MCU on Eclipse  

I would like to know , from where to add "${MCUToolsBaseDir}/ARM_GCC_Support/ewl/EWL_C/include" these library files in my project. Also, searching for linker flags on Linker Miscellaneous page. I have tried to add below flages as given in above link but I am getting an error as undefined  lc++.

-lc++ -lrt -lsupc++ -lc -lgcc -luart
I am getting following error after building the project.
c:/freescale/kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu/crt0.o: In function `_start':
(.text+0x4a): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
makefile:71: recipe for target 'Test_cpp.elf' failed.
Can any one help me in how to add C++ files to my project and compile the project.