我运行R的红帽子5.9 (gcc版本4.2),并得到以下的调解错误messege:
-I/home/gn31131/R_downloads/R_inst/lib64/R/include g++ -DNDEBUG -I /home/gn31131/R_g++/R_inst/include -I/home/gn31131/R_downloads/R_inst/library/Rcpp/include -I/home/gn31131/R_downloads/R_inst/library/RcppArmadillo/include -I。I/usr/local/include -I"/home/gn31131/R_downloads/R_inst/lib64/R/library/Rcpp/include“-I./inst/ -DNDEBUG -fpic -g -O2 -c RcppArmadillo.cpp -o RcppArmad场内./inst/include/armadillo:48,from ./inst/include/rcppArmadyarward.h:37,from ./inst/include/rcpparmad场下。h:30,在成员函数../inst/include/armadillo_bits/compiler_setup.hpp:119:6: Rcpp::Date::update_tm():/home/gn31131/R_ /home/gn31131/R_downloads/R_inst/lib64/R/library/Rcpp/include/Rcpp/Date.h: /R_inst/lib64 64/中,*需要更新的编译器*R/library/Rcpp/include/Rcpp/Date.h:108:警告:从函数中的/home/gn31131/R_downloads/R_inst/lib64/R/library/Rcpp/include/Rcpp/Date.h:转换为âtime_tâ:Date Rcpp::operator+(const::Date&,(Int):/home/gn31131/R_downloads/R_inst/lib64/R/library/Rcpp/include/Rcpp/Date.h:139:警告:转换为âtime_tâ(从
如有任何帮助,将不胜感激。
发布于 2014-05-28 20:28:12
如果您坚持使用gcc/g++ 4.2,则确实需要升级编译器,或者需要将RcppArmadillo降级为旧版本。当前版本测试
#if (ARMA_GCC_VERSION < 40200) && !defined(__INTEL_COMPILER)
#error "*** Need a newer compiler ***"
#endif这对你的系统很不利。
您可以通过CRAN's Archive page for the package访问所有发布的版本,您可能只需要尝试一些更老的版本。
或者升级您的操作系统(版本)。更新的RHEL/CentOS有较新的编译器,但我实际上推荐Ubuntu的LTS版本。
https://stackoverflow.com/questions/23921158
复制相似问题