Fix issue 'cmath not included'

Issue was present in some C++ compilers, as mentioned by @shane-evolve in issues/1.
This commit is contained in:
Rico Tiongson 2017-10-23 00:16:40 +08:00
parent caa6c0b271
commit 2597058bfb
2 changed files with 4 additions and 2 deletions

View File

@ -8,12 +8,13 @@ Comfortable 3-finger (and 4-finger) swipe gestures for Ubuntu 14.04 LTS+
2. `git clone https://github.com/Hikari9/comfortable-swipe-ubuntu.git` 2. `git clone https://github.com/Hikari9/comfortable-swipe-ubuntu.git`
3. `cd comfortable-swipe-ubuntu` 3. `cd comfortable-swipe-ubuntu`
4. `bash install` 4. `bash install`
5. You may delete the downloaded `comfortable-swipe-ubuntu` folder.
## How to Run ## How to Run
1. Run `comfortable-swipe start` in Terminal 1. Run `comfortable-swipe start` in Terminal
2. Flick away! 2. Flick away!
> If you get 'command not found' error or similar, try running with the full path: `/home/$USER/.local/bin/comfortable-swipe start` > If you're getting *command not found*, try running: `/home/$USER/.local/bin/comfortable-swipe start`
### Permissions ### Permissions
Sometimes, you'll need some permissions to read touchpad input data. Perform these steps to solve the permission issue: Sometimes, you'll need some permissions to read touchpad input data. Perform these steps to solve the permission issue:
@ -25,7 +26,7 @@ Sometimes, you'll need some permissions to read touchpad input data. Perform the
1. `gnome-session-properties` 1. `gnome-session-properties`
2. Click `Add` 2. Click `Add`
3. Enter the following: 3. Enter the following:
Name | Comforable Swipe Name | Comforable Swipe
------- | ------------------- ------- | -------------------
Command | `comfortable-swipe-start` Command | `comfortable-swipe-start`

View File

@ -25,6 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <cstdlib> #include <cstdlib>
#include <cstdarg> #include <cstdarg>
#include <cassert> #include <cassert>
#include <cmath>
#include <regex> #include <regex>
#include <chrono> #include <chrono>
#include <ctime> #include <ctime>