AnsweredAssumed Answered

Is anyone building C++ apps with the KSDK 1.1.0 and MQX?

Question asked by dave408 on Mar 8, 2015
Latest reply on May 18, 2015 by dave408

I've got a project that I want to write in C++ because I'm porting over from mbed, and I prefer C++ to C.    I'm using a FRDM-K64F.

 

I am basing the foundation of my application on the httpsrv example project.  I have gotten httpsrv to build fine.  However, in order to enable C++, I had to create the application from scratch because httpsrv was written for KDS 1.x and when importing into KDS 2.0, it does not expose the GCC C++ compiler settings.  I have read and been told elsewhere to start a new project from scratch, so that's what I did.

 

While the old httpsrv example worked with the compiled libraries (RTCS and MQX are working), the new one I created does not link.  I am at a point where the linker reports a lot of undefined references, and it seems that I have a name mangling problem.  I've had no luck so far recompiling the KSDK using g++.

 

So has anyone else out there built a C++ application using KSDK 1.1.0 and MQX for their Kinetis processor?  If so, can you please suggest any good rules of thumb for making it work?  I think my approach of trying to link to precompiled libraries is not going to work, and next I'm going to just include the all of the relevant KSDK projects in my C++ application as virtual folders to try to get around the problem.

Outcomes