You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting compilation errors due to missing ceil and floor. My gcc 9.2.0 is quite new; maybe it is wrongly compiling the sources as C++14?
isolation.cpp: In function 'int main(int, char**)':
isolation.cpp:145:24: error: 'floor' was not declared in this scope
145 | for (int lat = (int) floor(bounds[0]); lat < (int) ceil(bounds[1]); ++lat) {
| ^~~~~
isolation.cpp:145:54: error: 'ceil' was not declared in this scope; did you mean 'el'?
145 | for (int lat = (int) floor(bounds[0]); lat < (int) ceil(bounds[1]); ++lat) {
| ^~~~
| el
prominence.cpp: In function 'int main(int, char**)':
prominence.cpp:181:18: error: 'floor' was not declared in this scope
181 | for (int lat = floor(bounds[0]); lat < ceil(bounds[1]); ++lat) {
| ^~~~~
prominence.cpp:181:42: error: 'ceil' was not declared in this scope; did you mean 'el'?
181 | for (int lat = floor(bounds[0]); lat < ceil(bounds[1]); ++lat) {
| ^~~~
| el
The text was updated successfully, but these errors were encountered:
Interesting.. the makefile sets -std=c++11 and it built locally on a Mac. I've explicitly included <cmath> now. Let me know if that works. You can also send a PR if you find other build problems.
Hi Andrew,
I'm getting compilation errors due to missing
ceil
andfloor
. My gcc 9.2.0 is quite new; maybe it is wrongly compiling the sources asC++14
?The text was updated successfully, but these errors were encountered: