What would cause this error?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What would cause this error?

1,684 Views
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,
Labels (1)
0 Kudos
2 Replies

214 Views
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 Kudos

214 Views
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 Kudos