ofxFenster icon indicating copy to clipboard operation
ofxFenster copied to clipboard

Codeblocks on Windows failed to compile

Open jtnimoy opened this issue 12 years ago • 2 comments

In ofxFensterCanvas::setupPerspectiveForActiveScreen(), I was getting:

expected unqualified-id before '=' token

and I'm guessing the symbols near and far are causing a namespace conflict, so i renamed them to _near and _far.

I also had to explicitly cast _near to a float in the unary mulitply operation on line 160:

from:

float wholeMaxY = _near * halfFovTan;

to:

float wholeMaxY = (float)_near * halfFovTan;

... and then the compile succeeded.

jtnimoy avatar Jul 04 '13 14:07 jtnimoy

thanks. do you feel like this is just a dirty fix or can you make a pull request of it?

underdoeg avatar Jul 05 '13 13:07 underdoeg

ok, no prob. i did a pull req

On Fri, Jul 5, 2013 at 6:01 AM, Philip Whitfield [email protected]:

thanks. do you feel like this is just a dirty fix or can you make a pull request of it?

— Reply to this email directly or view it on GitHubhttps://github.com/underdoeg/ofxFenster/issues/56#issuecomment-20517783 .

jtnimoy avatar Jul 05 '13 18:07 jtnimoy