Compilation errors when building C++ project created using CW 6.3

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

Compilation errors when building C++ project created using CW 6.3

2,162 Views
JaySchneider
Contributor I
Hello,
 
I created a test project using CW 6.3 for 5208 EVB. I selected the project type to be C++.
 
After creating the project, when I compiled I am getting lot of error messages, everything related to namespace and msl_cant_throw errors.....
 
I tried the same thing with CW 6.2, it works fine.
 
Any help in resolving this issue appreciated !!!
 
Thanks and regards
 
Jay
Labels (1)
0 Kudos
2 Replies

400 Views
AQ
Contributor I
Hi jay.


I'm having the same problem. did you found the solution???
i tryed with v6.3 and 6.4 for mcf523x

Thanks.
0 Kudos

400 Views
CompilerGuru
NXP Employee
NXP Employee
One thing to note when using the CF compiler of 6.3 is that it requires a special license in order to compile files as C++ code.
If the license.dat does not contain a valid "Win32_ColdFire_Professional" feature, then the CF compiler is silently compiling all code as C, therefore a lot of very strange errors show up for C++ code, I copied the first few errors I got below.
As test, try a very simple b.cpp just containing something trivial like "class Test {};" If that fails with a
"Error   : undefined identifier 'class'" error, then the compiler is not running as C++ compiler.
Apart from this, I don't know the licensing details for the CF tools.

Daniel

Error   : undefined identifier 'namespace'
(included from:
 algorithm:518
 vector:221
 localeimp:30
 istream:147
 niostream:17
 iostream:33
 main.c:7)
msl_int_limits line 45    namespace std { 

Error   : declaration syntax error
(included from:
 algorithm:518
 vector:221
 localeimp:30
 istream:147
 niostream:17
 iostream:33
 main.c:7)
msl_int_limits line 74   template <unsigned char b = (unsigned char)(~0)> 

Error   : declaration syntax error
(included from:
 algorithm:518
 vector:221
 localeimp:30
 istream:147
 niostream:17
 iostream:33
 main.c:7)
msl_int_limits line 80   template <> 

Error   : declaration syntax error
(included from:
 algorithm:518
 vector:221
 localeimp:30
 istream:147
 niostream:17
 iostream:33
 main.c:7)
msl_int_limits line 86   template <class T, bool is_signed = T(-1) < T(0)> struct __two_complement; 

0 Kudos