I'm trying to declare and initialize several float arrays with
I getCode:#pragma once class GlobalLight { private: static const GLfloat FULLSUN[]; }; const GLfloat GlobalLight::FULLSUN[] = {240, 240, 188, 1};
Code:1>GlobalLight.obj : error LNK2005: "private: static float const * const GlobalLight::FULLSUN" (?FULLSUN@GlobalLight@@0QBMB) already defined in CarRace.obj
I've searched the web but found nothing Anyone knows how to do this?