puzzlepaint / surfelmeshing

Real-time surfel-based mesh reconstruction from RGB-D video.
BSD 3-Clause "New" or "Revised" License
420 stars 83 forks source link

error: ‘::isnan’ has not been declared #4

Closed RuibinMa closed 5 years ago

RuibinMa commented 5 years ago

Hello, Thanks for sharing the code. I met the following error when I tried to compile your code:

.../surfelmeshing/libvis/src/libvis/patch_match_stereo.cc:782:18: error: ‘::isnan’ has not been declared if (!::isnan(proposal_costs) && !(proposal_costs >= costs(x, y))) {

I'm using gcc-5. I have found by google that this might be caused by missing "-std=c++11" flags. However, I found these flags in the CMakeList.txt.

puzzlepaint commented 5 years ago

Does it work if you use std::isnan instead of ::isnan?

RuibinMa commented 5 years ago

Yeah, it works. Thank you!