Skip to content

Commit

Permalink
C++17 <string_view> requires g++ 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Jul 12, 2020
1 parent acb455c commit ab2f437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ If the pre-built release already works for you, you don't have to build it yours

### Install dependencies

You need at least g++ 4.9 for `<regex>` support.
You need at least g++ 7 for C++11 `<regex>` and C++17 `<string_view>` support.

#### Ubuntu/Debian

Expand All @@ -53,12 +53,12 @@ sudo dnf install make g++ git unzip
sudo dnf install zlib-devel libpng-devel libXpm-devel libX11-devel libXft-devel libXinerama-devel fontconfig-devel libXext-devel libXrender-devel libXfixes-devel
```

### Install and build Polished Map
### Install and build Polished Map++

Run the following commands:

```bash
# Clone Polished Map
# Clone Polished Map++
git clone --branch plusplus https://github.com/Rangi42/polished-map.git
cd polished-map

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tmpdir = tmp
debugdir = tmp/debug
bindir = bin

CXXFLAGS = -std=c++11 -I$(srcdir) -I$(resdir) $(shell fltk-config --use-images --cxxflags)
CXXFLAGS = -std=c++17 -I$(srcdir) -I$(resdir) $(shell fltk-config --use-images --cxxflags)
LDFLAGS = $(shell fltk-config --use-images --ldflags) $(shell pkg-config --libs libpng xpm)

RELEASEFLAGS = -DNDEBUG -O3 -flto -march=native
Expand Down

0 comments on commit ab2f437

Please sign in to comment.