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.

MCU-PLUS-SDK-AM263X: MCU-PLUS-SDK-AM263X:

Part Number: MCU-PLUS-SDK-AM263X

Tool/software:

I want to compile the both C and c++ code files in a project. Now i am using the compiler version TI Clang V3.2.2 LTS . In documents its showing that it supports to both C and C++ support. 

I can able to compile the c code in that same project, but When I import the c++ code file in the project and trying to compile it, its showing error related to Class, public, and private c++ keywords issue. 

could you please help me to enable both c++ and C+ language support in the project . 

thanks

Anand. 

  • could you please help me to enable both c++ and C+ language support in the project .

    It's enabled already. Does the 'hello_world_cpp' in the SDK example compile OK?

    its showing error related to Class, public, and private c++ keywords issue.

    What error exactly?

    In your project, do your C++ files have extension .C (caps) or .cpp?

  • Description Resource Path Location Type
    expected ';' after top level declarator Dakota_Adapter_TI_Sitara_CAN.h /48VConverter_Bootloader/DakotaAdapter-TI line 30 C/C++ Problem
    expected ';' after top level declarator Ti-Sitara.h /48VConverter_Bootloader/DakotaAdapter-TI line 32 C/C++ Problem
    gmake: *** [Main/main.o] Error 1 48VConverter_Bootloader C/C++ Problem
    gmake: Target 'all' not remade because of errors. 48VConverter_Bootloader C/C++ Problem
    recipe for target 'Main/main.o' failed subdir_rules.mk /48VConverter_Bootloader/SBL_JTAG/Main line 9 C/C++ Problem
    unknown type name 'class' Dakota_Adapter_TI_Sitara_CAN.h /48VConverter_Bootloader/DakotaAdapter-TI line 30 C/C++ Problem
    unknown type name 'class' Ti-Sitara.h /48VConverter_Bootloader/DakotaAdapter-TI line 32 C/C++ Problem
    unknown type name 'public' Dakota_Adapter_TI_Sitara_CAN.h /48VConverter_Bootloader/DakotaAdapter-TI line 30 C/C++ Problem
    This project was created using a version of compiler that is not currently installed - TICLANG_3.2.2.LTS [Arm]. Another version of the compiler will be used during build - TICLANG_3.2.1.LTS. See 'Help > Install New Software' and select 'Code Generation Tools Updates' to check if this compiler is available through a CCS update. Visit <a href="liveaction:OpenAppCenter">CCS App Center</a> to get the latest compiler support. Or <a href="">software-dl.ti.com/.../a> and install the compiler, then register it with CCS through 'Preferences > CCS > Build > Compilers'. 48VConverter_Bootloader properties Problem

  • Is this a TI example you're trying to build or is this your custom project?

    BTW, you haven't answered my other questions:

    • Does the 'hello_world_cpp' in the SDK example compile OK?
    • In your project, do your C++ files have extension .C (caps) or .cpp?
  • Please rebuild the entire project.  One way to do that is to right-click on the name of the project and select Rebuild Project.  Then save the contents of the Console (not Problems) view to a text file.  Use the icon named Copy Build Log (older versions of CCS) or Save build log to file (newer versions of CCS).  When you name the log file, be sure to use the file extension .txt.  Please attach that text file to your next post.

    Thanks and regards,

    -George