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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,357 次查看
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 项奖励
回复
1 解答
1,263 次查看
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

 

在原帖中查看解决方案

6 回复数
1,311 次查看
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 项奖励
回复
1,291 次查看
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 项奖励
回复
1,286 次查看
ve3id
Contributor III
I am using linux. Specifically OpenSuSE leap 15.6. Nothing on my 60-node network uses Windows
0 项奖励
回复
1,264 次查看
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

 

1,259 次查看
ve3id
Contributor III
Thank you very much! Lots of new work for me to do tomorrow! Goodnight!
0 项奖励
回复
1,320 次查看
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 项奖励
回复