This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC1352P: Compiling C++ for CC1352P

Part Number: CC1352P

Tool/software: Code Composer Studio

Hello,

I'm trying to port some code written using C++ into CC1352P.

This code manages to compile using g++ on a linux system.

When trying to compile on CC1352P (compiler TI 18.12.2) I hit problems.

The C++ settings I've applied: 

C/C++ Build\Advanced Options\Language Options:

1. (--cpp_default, -fg), (-exceptions)

2. Floating point precision accepted by compiler (none)

3. --printf_support minimal

4. C++ dialect C++14

As soon as add any #include (e.g. <iostream>, <unordered_map>) I get an error for where:

1. I get the following error:

"C:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/machine/ieeefp.h", line 459: fatal error: #error directive: Endianess not declared!!

I have to #define __IEEE_LITTLE_ENDIAN to overcome this (although I attempted to disable FP support above)

2. I fail to compile due to missing sys/config.h is not found

"C:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\_ansi.h", line 16: fatal error: cannot open source file "sys/config.h"

If I don't add any inlcludes the C++ code starts compiling and fails on the missing includes.

I looked into several C++ posts for code coposer but none was helpful.

Kindly