shohei909 / haxe_stb_ogg_sound

public domain ogg decoder writen in Haxe.
26 stars 4 forks source link

Problem when building with cpp target #3

Open bitstopper opened 8 years ago

bitstopper commented 8 years ago

When compiling with the cpp target I've got this error:

/src/stb/format/vorbis/VorbisTools.cpp:1852:6: error: lvalue required as left operand of assignment M_PI= ((Float)3.14159265358979323846264);

It looks liked M_PI is defined twice, but as I'm new to Haxe I don't know how to handle this correctly. I worked around it just by renaming the occurrences to MATH_PI and now it's working perfectly.

cambiata commented 7 years ago

This is solved in the https://github.com/motion-twin/haxe_stb_ogg_sound fork

shohei909 commented 7 years ago

Thanks for report and fix!

cambiata commented 7 years ago

This issue could be closed, I guess.