Community Translation - Error Message “expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef’” While Building a Project in PSoC Creator™- KBA222957

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,

I would like to translate KBA222957 into Japanese.

Thanks,

Kenshow


Original KBA:

Error Message “expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef’” While Building a P...

Translated by Kenshow

==============================

タイトル: PSoC Creator™でプロジェクトをビルド中のエラーメッセージ「expected '='、 '、'、 ';'、 'asm' or '__attribute__' before 'typedef'」-PSoC Creator™でプロジェクトをビルド中 - KBA222957

バージョン:**

質問:

PSoC Creator™でプロジェクトをビルドしたとき、「expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'」というエラーメッセージが表示されます。この問題を解決するにはどうすればよろしいでしょうか?

回答:

includeステートメントの前のコード行の構文に従わない場合、Arm®GCCは最初のインクルードの最初の行の前に発生したとしてエラーを報告します。以下に示すように、stdlib.hのコードの最初の行に余分な文字「a」が追加されている例を考えてみます。

a//sample

#include <stdlib.h>

#include <stdio.h>w

#include <string.h>


int main (int argc, char** argc) {}


int main (int argc, char** argc) {}

1.png
この例では、GCCコンパイラーはstddef.h構文エラーを報告しますこれは以下に示すエラーメッセージに似ています。

  

エラーを解決するには、余分な文字「a」を削除します。

==============================

7-May-2020

Kenshow

0 Likes
1 Reply
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello, Kenshow-san

We receive your translation, it will be published to KBA to Community.

After upload, You will receive the points as the word of KBA.

Due to the current delay of internal review, Please bear with me for the delayed the response.

It could be delayed, but it will be processed soon.

Thanks for your contribution to CDC!

Will keep you update the status.

Thanks,

Jenna Jo

Jenna Jo
0 Likes