Compiler error in stdtypes.h

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

Compiler error in stdtypes.h

ソリューションへジャンプ
2,357件の閲覧回数
EmbeddedDude
Contributor I
I have been using CodeWarrior version 4.5 on this product for two years. I added a small amount of code to one of my project files and received a C2450 error on the following line of stdtypes.h:
 
typedef void (*PROC)(void);
 
I even removed the code I had just added, and I still get the error! What happened?
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,498件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee
Hi,

What I usually do when I see such unexpected failures is to check the preprocessor output,
just use the preprocess context menu in the source file and check how the typedef looks after preprocesing.
Also, I do know the compiler quite a bit, but I don't remember by heart what C2450 is for :smileywink:.
You can copy paste the actual error messages from the message window with Ctrl-C.

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,499件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee
Hi,

What I usually do when I see such unexpected failures is to check the preprocessor output,
just use the preprocess context menu in the source file and check how the typedef looks after preprocesing.
Also, I do know the compiler quite a bit, but I don't remember by heart what C2450 is for :smileywink:.
You can copy paste the actual error messages from the message window with Ctrl-C.

Daniel
0 件の賞賛
返信