You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@yangbenfa What is the version of GCC and CentOS? The latest RE2 upstream library uses a lot of C++11 features, eg. C++11 thread and mutex. The package will require R > 3.3, which will use at least GCC 4.9.3 on CRAN.
The package will be released to CRAN, when this upstream issue google/re2#102 is solved. CRAN now also uses GCC 6.1.1 20160802 which has the bug to compile RE2.
g++ -m64 -std=c++0x -I/usr/include/R -DNDEBUG -I../inst/include -DNDEBUG -DNO_RE2_THREADS -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library/RcppParallel/include" -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c RcppExports.cpp -o RcppExports.o
In file included from ../inst/include/re2r.h:43,
from RcppExports.cpp:4:
../inst/include/optional.hpp:115: 错误:expected unqualified-id before ‘using’
../inst/include/optional.hpp:134: 错误:ISO C++ 不允许声明无类型的‘constexpr’
../inst/include/optional.hpp:134: 错误:expected ‘;’ before ‘static’
../inst/include/optional.hpp:142: 错误:expected constructor, destructor, or type conversion before ‘static’
../inst/include/optional.hpp:144: 错误:‘declval’不是‘std’的成员
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘>’ token
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘)’ token
../inst/include/optional.hpp:144: 错误:‘declval’不是‘std’的成员
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘>’ token
../inst/include/optional.hpp:144: 错误:expected primary-expression before ‘)’ token
../inst/include/optional.hpp:146: 错误:expected constructor, destructor, or type conversion before ‘static’
../inst/include/optional.hpp:148: 错误:ISO C++ 不允许声明无类型的‘constexpr’
../inst/include/optional.hpp:148: 错误:expected ‘;’ before ‘static’
../inst/include/optional.hpp:157: 错误:ISO C++ 不允许声明无类型的‘constexpr’
The text was updated successfully, but these errors were encountered: