From 7bdf1ccb234f9a107d9c68725c077cdbe2dd3acc Mon Sep 17 00:00:00 2001 From: 0140454 Date: Sun, 8 Jan 2017 12:30:03 +0800 Subject: [PATCH] Include necessary header file for std::abs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While compiling Latte-Dock, i got the following error: /data/latte-dock/src/latte-dock-git/app/iconitem.cpp:393:46: required from here /data/latte-dock/src/latte-dock-git/app/../liblattedock/extras.h:69:20: error: call of overloaded ‘abs(double)’ is ambiguous return std::abs(x - y) < std::numeric_limits::epsilon() * std::abs(x + y) * ulp In order to solve this error, i have to include `cmath`. --- liblattedock/extras.h | 1 + 1 file changed, 1 insertion(+) diff --git a/liblattedock/extras.h b/liblattedock/extras.h index 3d0cf87db..d48880bfc 100644 --- a/liblattedock/extras.h +++ b/liblattedock/extras.h @@ -13,6 +13,7 @@ #include #include #include +#include #if __GLIBCXX__ <= 20150623 namespace std {