What would cause this error?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

What would cause this error?

1,868件の閲覧回数
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 返答(返信)

398件の閲覧回数
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 件の賞賛
返信

398件の閲覧回数
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 件の賞賛
返信