`fabs` function maybe undeclared...
Open
- Dominant language
- C++
- Stars
- 1.6k
- Forks
- 540
- PR merge metrics
- No merged PRs in 30d
Description
When building test routines, this appeared:
```
tests/test_kv_app.cc: In function ‘void RunWorker()’:
tests/test_kv_app.cc:44:43: error: ‘fabs’ was not declared in this scope
res += fabs(rets[i] - vals[i] * repeat);
```
my compiler: gcc version 5.4.0 20160603 (Ubuntu 5.4.0-3ubuntu1~12.04)
I put cmath header on line2 in tests/test_kv_app.cc and fixed line44 like std::fabs(..., then, passed
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.