This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

data member initializer is not allowed problem with float and double

hello all, i was trying to compile this with ccsv6. I am building for 6678 on EVMK2H. I got the following error message 

class test{
public:
static const float age =18.0;

};

Description Resource Path Location Type
#323 data member initializer is not allowed hello.h /helloworld line 18 C/C++ Problem

any idea why thats happening?