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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,361件の閲覧回数
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,267件の閲覧回数
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,315件の閲覧回数
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,295件の閲覧回数
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,290件の閲覧回数
ve3id
Contributor III
I am using linux. Specifically OpenSuSE leap 15.6. Nothing on my 60-node network uses Windows
0 件の賞賛
返信
1,268件の閲覧回数
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,263件の閲覧回数
ve3id
Contributor III
Thank you very much! Lots of new work for me to do tomorrow! Goodnight!
0 件の賞賛
返信
1,324件の閲覧回数
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 件の賞賛
返信