Tool/software: TI C/C++ Compiler
I started my ti-rtos in "C" and everything compiled fine and ran. Then I wanted to add some "C++" capability, mostly in enum class at the moment, so I renamed my files with the extension .cpp. All compiled fine so I added the enum class to a header file and I got the following error
undefined first referenced
symbol in file
--------- ----------------
NDK_hookInit C:\Users\Kevin Russell\Dropbox\Projects 2\38 LCAAP Eddy Current\Software Control V2\tirtos_builds_MSP_EXP432E401Y_release_ccs\Debug\configPkg\package\cfg\release_pem4f.oem4f
this made no sense to me, however I went in to the header files and added
#ifdef __cplusplus
extern "C" {}
#endif
which did nothing for correcting the problem. I tried running clean and rebuild without the problem being corrected.
I went back into my code removed the C++ code and renamed the files back to ".c" files. The error message has gone away.
My question is what do I have to do to write code in C++?
Kevin