CW7.0 Pro: MCF52223: Error: "declaration specifier conflict; illegal 'bool' sequence"

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

CW7.0 Pro: MCF52223: Error: "declaration specifier conflict; illegal 'bool' sequence"

2,271 次查看
nbonwit
Contributor I

Hello,

Every time I make my project, I get the error "declaration specifier conflict; illegal 'bool' sequence" on the following line in PE_Types.h (which I'm assuming is an autogenerated file from Processor Expert).

/* PE types definition */
typedef unsigned char           bool;

I can't disable bool support in the C++ langauge options because I'm using booleans in my own code.  I'm assuming the error is because the PE_Types.h fils is trying to give the name 'bool' to a variable but it's already a reserved keyword (bool).  If I comment out that line, the compiler error goes away, but if I restart Codewarrior and remake the project, the error reappears (I'm assuming because it's regenerating the file PE_Types.h)

What should I do?  Any help would be appreciated.

Thanks,
Neville

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,055 次查看
ProcessorExpert
Senior Contributor III
We are sorry but Processor Expert doesn´t support C++.

Processor Expert Support Team
www.processorexpert.com
0 项奖励
回复