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.

MSP430F67791A: adding C++ code in C Project in IAR

Part Number: MSP430F67791A

Hello all,

I have a huge project in which is develope in C in IAR. Now I am trying to add a C++ code as I want to port my code into C++ gradually.  After writing some demo class in the project, it is giving errors as mentioned below.  I found on the StackOverflow at the link provided belowbut it seems like using C code in a C++ Project. I am trying to achieve the opposite. I would appreciate any suggestions.

Error[Pe020]: identifier "class" is undefined D:\Projects\aaaaaaa\source_code\tlv493d.h 10

Error[Pe065]: expected a ";" D:\Projects\aaaaaaa\source_code\tlv493d.h 11

https://stackoverflow.com/questions/16733368/mix-c-c-in-iar-embedded-workbench

  • Hello dear customer,

    thanks for your error/problem report. Currently I am not using IAR on my machine, nor have I personally done this. I'll try to find a colleague that has the right setup to help you out here. I get back 2 U within a couple off days.

    Thanks for your patience

        and have a nice day

       Johann

  • Hello Dheeraj,

    this is an interim answer on the status: It looks like we cannot help you on generic C to C++ conversion. TLV493D seems to be a 3D magnetic sensor device from Infineon. The example on StackOverflow uses an STM device for reference. Here in the local TI office no-one of my colleagues has an IAR installation to quickly check the error message. In case the problems are IAR specific I propose to to contact IAR's support service to analyze their error messages.

    I will x-check with other colleagues if they are able to help you. 

    !Anyone! that has an idea how to help Dheeraj, please respond.

      best regards

         Johann

**Attention** This is a public forum