wjakob / nanogui

Minimalistic GUI library for OpenGL
Other
4.66k stars 608 forks source link

Error building the python plugin with Visual Studio 2015 #201

Open rojsc opened 7 years ago

rojsc commented 7 years ago

Windows 7 Visual Studio 2015 Professional version 14.0.23107.0 D14REL cmake 3.7.2-win64-x64

I have trouble building the python plugin (building nanogui itself works nicely), receiving the following error message: nanogui\ext\pybind11\include\pybind11\common.h(385): error C2039: 'negation': is not a member of 'std' (compiling source file [...]nanogui\python\textbox.cpp)

If I read it correctly, std::negation is introduced with C++17. Visual Studio Update 2 (which I think I don't have) claims to implement C++17 "feature complete". Could the missing VS update be the reason here, and is there a way around it?

rojsc commented 7 years ago

I updated Visual Studio 2015 to the latest version ("Update 3") and now the build is indeed working fine. It would be nice to add this requirement to the compilation documentation though.