martinrotter / textosaurus

Cross-platform text editor based on Qt and Scintilla.
GNU General Public License v3.0
284 stars 44 forks source link

string_view is only available with C++17 #67

Closed andr1972 closed 5 years ago

andr1972 commented 5 years ago

Brief description of the issue.

In C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\string_view:11 is error:

if !_HAS_CXX17

error string_view is only available with C++17.

endif / _HAS_CXX17 /

I tried CONFIG += c++17 QMAKE_CXXFLAGS += -std=c++17 in build.pro and CONFIG += c++1z CONFIG += c++17 QMAKE_CXXFLAGS += -std=c++17 in libtextosaurus.pro but this not helps.

martinrotter commented 5 years ago

Must be something in configuration of your build tools, because compilation just works with vanilla MSVC 2017 and also AppVeyor is able to compile without any extra tinkering.

Also the flag to force use of latest available C++ specs is already set here.

martinrotter commented 5 years ago

I stumbled upon this too!!!! It had to somehow arose when I updated my MSVC toolchain.

Anyway, its fixed now!!!