rlguy / GridFluidSim3D

A PIC/FLIP fluid simulation based on the methods found in Robert Bridson's "Fluid Simulation for Computer Graphics"
zlib License
788 stars 95 forks source link

error: '_hypot' was not declared in this scope {return (float)(_hypot));} #7

Closed ivince closed 8 years ago

ivince commented 8 years ago

2016-05-31_215643

ivince commented 8 years ago

someone said this is bug in mingw. editing mingw/include/math.h _hypot to hypot solved the issue

rlguy commented 8 years ago

Hello ivince,

Good to hear that you were able to find a solution that solves this issue! I'll leave a link to the post describing the fix for anyone else that runs into this error, and close this issue.

StackOverflow: error: '_hypot' was not declared in this scope

Thanks, Ryan