Mark Ashby

[CW6.1] CPP Compiler

Discussion created by Mark Ashby on Feb 28, 2006
Latest reply on Mar 2, 2006 by Mark Ashby
Anyone,
 
Does the CPP compiler work???
 
1) Create a CPP Stationary for the 5213
2) Create a file Test.h
 
#ifndef __TEST_H__
#define __TEST_H__
class Test
{
public:
 Test();
private:
 int nX;
public:
 SetX(int x);
};
#endif
3) Create a file Test.cpp

#include "Test.h"
Test::smileyfrustrated:etX(int x)
{
 nX = x;
}
4) Compile.
 
I get error
 
Error   : undefined identifier 'class'
Test.h line 4   class Test
 
I have checked the force CPP compile to no avail.
 
I have attached the "Installed Plugins.txt" for reference to the version of compiler that I have.
 
Any help would be appreciated.
 
Thanks
 

Outcomes