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

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

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

Jump to solution
1,070 Views
ve3id
Contributor III

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

 

 

 

 

 

 

0 Kudos
Reply
1 Solution
976 Views
Harry_Zhang
NXP Employee
NXP Employee

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

 

View solution in original post

6 Replies
1,024 Views
ve3id
Contributor III

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

0 Kudos
Reply
1,004 Views
Harry_Zhang
NXP Employee
NXP Employee

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

0 Kudos
Reply
999 Views
ve3id
Contributor III
I am using linux. Specifically OpenSuSE leap 15.6. Nothing on my 60-node network uses Windows
0 Kudos
Reply
977 Views
Harry_Zhang
NXP Employee
NXP Employee

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

 

972 Views
ve3id
Contributor III
Thank you very much! Lots of new work for me to do tomorrow! Goodnight!
0 Kudos
Reply
1,033 Views
Harry_Zhang
NXP Employee
NXP Employee

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

0 Kudos
Reply