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.

unnamed union problem #41 expected an identifier

Other Parts Discussed in Thread: TM4C1231H6PM, CC3200

Hi experts, I have folloving code with mentioned problem while choosen Device is CC3200. But if I choose other device TM4C1231H6PM, there is no problem and everything works correctly. How to set compiler for CC3200 to do same as compiler for TivaC?

against

Thanks a lot.

Jan

  • I see from your build output that you are using v5.1.x of the ARM compiler. It appears that for CC3200 projects the default is to compile for "Strict ANSI mode" parsing which in turn triggers the error. While for TivaC projects the default option is set to "Relaxed parsing".  This option is under Project Properties->Build->Compiler->Advanced Options->Language Mode. For CC3200, although the setting may not be visible in the drop-down, I believe it is getting set behind the scenes by default.

    You can workaround the error by manually setting this option to "Relaxed parsing", or by upgrading to compiler version 5.2.x, which seems to have the relaxed setting by default. To update the compiler tools, go to Help->Install New Software, and select Code Generation Tools Updates from the drop down list, then select the desired version to install.