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.

#821 badly formed pragma

Hi all, 

compiler :c6000_7.4.4 compiler

In my c++ program - following line throws "Badly formed Pragma" error-

#pragma DATA_SECTION(".SharedRegion")
int Interrupt_Value ;

in my .cfg :

Program.sectMap[".SharedRegion"] = "MSMCSRAM";

  • Fixed :
    It was a simple mistake -
    - Just added ";" after #pragma DATA_SECTION(".SharedRegion") . Cleaned the entire project and rebuilded it .
    Issue got resolved.
  • No matter what build options I use this ...

    vinodh rv said:
    #pragma DATA_SECTION(".SharedRegion")
    int Interrupt_Value ;

    builds clean for me.  Note there is no ; at the end of the pragma.  What build options did you use?

    Thanks and regards,

    -George