CW 10 Beta compiler C++ problem

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

CW 10 Beta compiler C++ problem

1,408 次查看
Nik
Contributor III

I have CW 10 installed in two systems, Win 7 x64 and XP 32.

I am trying to compile the same code on both.  On the Win 7 machine I imported a CW 6.3 project.  It compiles OK, sort of. I am having a linked issue trying to link to another project's .sx file.  Not the issue that I'm concerned about, though.

 

On the XP machine, I decided to build the project from scratch.  I have a class declaration in a header file.  The compiler does not recognize the key word "class" as in:

 

 

class filterTransposed {

 

 

  float b [4];

 

  float c [4];

  float ramp_time_constant;

  float ramp;float hold_count;

  float a [4];

 

 

 

public:

 

 

 ...};

 

But tthe same header compiles OK on the Windows 7 install.

 

What to look for?

Thanks,

-Robert

标签 (1)
0 项奖励
回复
3 回复数

926 次查看
CompilerGuru
NXP Employee
NXP Employee

Check the license setup. When the CF compiler does not find a C++ license, it does compile everything as plain c, even files with a cpp extensions.

 

Daniel

0 项奖励
回复

926 次查看
Nik
Contributor III

Thanks,

it says that I have 28 days left.

0 项奖励
回复

926 次查看
CompilerGuru
NXP Employee
NXP Employee

> it says that I have 28 days left.

Who is it, and for which feature?

In the end, the thing that fails is the CF compiler executable and it does not get the necessary license in your setup.

I did not look into any licensing issues recently, so I cannot really help. Just as first thing to check is a LM_LICENSE_FILE

environment variable. It did cause some issues in the past if it did exist and was set to some other licenses.

 

Daniel

0 项奖励
回复