What would cause this error?

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

What would cause this error?

2,072 次查看
forums_frank
Contributor I
Hi,

I'm using CW7.1 (for ColdFire) to do our project. I'm porting some third party softwarw and I saw the following error when I build the software:

Error   : undefined identifier 'namespace'
(included from:
 queue:79
 queue.h:13
 fec.h:11
 fec.c:11)
mslconfig line 445     namespace std { 


Could you help me recongnize how this error would be caused.

Regards,
标签 (1)
0 项奖励
回复
2 回复数

602 次查看
stanish
NXP Employee
NXP Employee
Hello,

Do you use C or C++ compiler?
Seems to me that the modules include C++ header file  <mslconfig> but the project is compiled by the C compiler only. Which standard libraries are you using C or C++?

Stanish

0 项奖励
回复

602 次查看
CompilerGuru
NXP Employee
NXP Employee
Not sure about 7.1, but in previous versions of the compiler it did silently fall back to C mode if the license did not support C++. So if the problem is that the compiler does not accept any C++ code, check the license.

Daniel
0 项奖励
回复