2016-01-21 89 views
-1

我想按照here给出的说明编译Rstudio。在qtcreator打开文件rstudio/src/cpp/CMakeLists.txt和运行CMake的之后,我得到的生成错误使用Qtcreator构建Rstudio(编译错误)

/home/nesau/Documents/GitHub/rstudio/src/cpp/tests/cpp/tests/vendor/catch.hpp 
:1185:23:error: 'nullptr_t' is not a member of 'std' 
std::string toString(std::nullptr_t); 
       ^

我跟着前面的指令,如安装需要的依赖(OS:Arch Linux的)。一些成功地在Qt-Creator中设置Rstudio的人建议的话将不胜感激 - 如果需要,我愿意在虚拟机中使用不同的操作系统 - 我只是不确定为什么我无法编译Rstudio( GitHub wiki不是很详细)。

回答

1

您必须切换到C++ 11模式。将-std=c++11添加到您的CMAKE_CXX_FLAGS