hironishihara / ofxTrueTypeFontUC

An extension of ofTrueTypeFont class for using UNICODE characters. Tested on OSX, iOS, and Windows.
Other
115 stars 46 forks source link

VC++ compiler problem #8

Closed mysteryDate closed 9 years ago

mysteryDate commented 10 years ago

The library compiles fine for me on xcode and mac, but when using the visual studio compiler I get the error:

error C2864: 
'ofxTrueTypeFontUC::Impl::librariesInitialized': only static const integral data members can be initialized within a class

On line 73 of ofxTrueTypeFontUC.cpp:

bool librariesInitialized = false;

If I remove the declaration:

bool librariesInitialized;

and add it at the top:

public:
    Impl(){librariesInitialized = false;};
    ~Impl(){};

everything appears to work fine.

hironishihara commented 9 years ago

Thank you for letting me know. I've fixed it just now.