Using C++ with coldfire MCUs

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

Using C++ with coldfire MCUs

跳至解决方案
1,810 次查看
High_Templar
Contributor I

Hi all.

 

I'm trying to make a C++ project for the TWR-CN128 (coldfire MCU). However, when I add a simple class, the compiler give me this error: undefined identifier 'class'. I don't get this error when I use a S08 or Kinetis MCU .

 

I'm using CW 10.3 Special Edition.

 

Thanks for any help.

 

Mensaje editado por: angel terrones

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,426 次查看
BlackNight
NXP Employee
NXP Employee

Hi angel,

the special edition does not include C++ support. The S08 has a 1 KByte free limit, while while the ColdFire compiler allows 0 bytes (it compiles the C++ files as a C file).

Kinetis: I think you used the gcc option: here the compiler/linker has no limitatin (as GNU). The debugger will impose the limitation. So for ColdFire, you either upgrade your license, or you could consider gcc for ColdFire.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,427 次查看
BlackNight
NXP Employee
NXP Employee

Hi angel,

the special edition does not include C++ support. The S08 has a 1 KByte free limit, while while the ColdFire compiler allows 0 bytes (it compiles the C++ files as a C file).

Kinetis: I think you used the gcc option: here the compiler/linker has no limitatin (as GNU). The debugger will impose the limitation. So for ColdFire, you either upgrade your license, or you could consider gcc for ColdFire.

0 项奖励
回复
1,426 次查看
High_Templar
Contributor I

Hi Erich.

Thanks for you answer. Making some testing with #warnings, I realize what you say: the cpp file is compiled in C mode (and that using a eval license, the file compile with no errors)

:smileysad:

Well, I will investigate how to use gcc for coldfire.

Thanks!

0 项奖励
回复