我在R 2.15.0中运行install.packages('mvoutliers',dependencies = TRUE),但在pcaPP软件包上失败了。有任何想法吗?
* installing *source* package ‘pcaPP’ ...
** package ‘pcaPP’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/include/R/ -DNDEBUG -DR_PACKAGE_FILE -I/usr/local/include -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -c L1Median_HoCr.cpp -o L1Median_HoCr.o
In file included from smat.h:28:0,
from L1Median.h:5,
from L1Median_HoCr.cpp:1:
smat.base.h: In instantiation of ‘void SVec<T>::Copy(const tc_this&) const [with T = double; SVec<T>::tc_this = SCVec<double>]’:
L1Median_HoCr.cpp:93:32: required from here
smat.base.h:882:4: error: ‘EqualDims’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
smat.base.h:882:4: note: declarations in dependent base ‘CDimCont<1u>’ are not found by unqualified lookup
smat.base.h:882:4: note: use ‘this->EqualDims’ instead
make: *** [L1Median_HoCr.o] Error 1
ERROR: compilation failed for package ‘pcaPP’
* removing ‘/usr/lib/R/library/pcaPP’
ERROR: dependency ‘rgl’ is not available for package ‘compositions’
* removing ‘/usr/lib/R/library/compositions’
最佳答案
看起来像是文件smat.base.h
中的真正错误。
您可以尝试与pcaPP
的维护者联系。
关于c++ - 从CRAN安装aPP软件包时出现编译时错误,这可能是什么原因吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10046641/