Compiler error in stdtypes.h

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

Compiler error in stdtypes.h

跳至解决方案
2,403 次查看
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,544 次查看
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,545 次查看
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 项奖励
回复