gpt4 book ai didi

c++ - 从 CRAN 安装 pc aPP 包时出现编译时错误,知道这可能是什么原因吗?

转载 作者:太空宇宙 更新时间:2023-11-04 12:10:35 26 4
gpt4 key购买 nike

我在 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 安装 pc aPP 包时出现编译时错误,知道这可能是什么原因吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10046641/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com