1986416_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

1986416_en-US

1986416_en-US

expected ';', identifier or '(' before 'char'

I am resurrecting a project that has sat for a few years, and which was originally developed using Kinetis Desiign Studio.  A few months ago, I imported it into MCU Expresso and it compiled fine.   However, after upgrading MCUExpresso (from 11. something to 24. something ??)  I am getting the above fatal error message on the very first char statement in the program:

const char line1[]="Frere Radio ";
const char line2[]="System V0.1 ";

Any suggestions as to what is happening?

cheers,

Nigel







Re: expected ';', identifier or '(' before 'char'Thank you very much! Lots of new work for me to do tomorrow! Goodnight!Re: expected ';', identifier or '(' before 'char'

Hi @ve3id 

I fixed this issue.

In your project, CMSIS/frere.h

Line 876 is missing renaming and semicolons.

Please add renaming and semicolons.

And source/MK64F12_Project.c 

Line 354, this function is also wrong.

After you fix two issues, you will compile well.

This is a problem with your code, not an MCUXpresso IDE upgrade issue.

BR

Hang


Re: expected ';', identifier or '(' before 'char'I am using linux. Specifically OpenSuSE leap 15.6. Nothing on my 60-node network uses Windows Re: expected ';', identifier or '(' before 'char'

Hi @ve3id 

I see that your project format is .tar.gz. May I ask if your mcuxpresso is a window version or a Linux version?

BR

Hang

Re: expected ';', identifier or '(' before 'char'

Thank you for the kind offer, which I would appreciate you trying.  I think you are right, but I cannot put my finger on it!  I have attached a zip file of the entire directory tree

Re: expected ';', identifier or '(' before 'char'

Hi @ve3id 

It sounds like an upgrade to MCUXpresso may have introduced changes in compiler behavior or project settings, which is causing this syntax error.

Can you share this project so that I can check?

BR

Hang

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 10:30 PM
Updated by: