码迷,mamicode.com
首页 > 编程语言 > 详细

error: ISO C++ forbids initialization of member ‘valid’

时间:2020-11-12 14:22:52      阅读:14      评论:0      收藏:0      [点我收藏+]

标签:std   local   offer   prot   library   removing   VID   pdf   int   

 

> install.packages("farver")
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
trying URL ‘https://mirrors.bfsu.edu.cn/CRAN/src/contrib/farver_2.0.3.tar.gz‘
Content type ‘application/octet-stream‘ length 1279579 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

* installing *source* package ‘farver’ ...
** package ‘farver’ successfully unpacked and MD5 sums checked
** libs
g++ -m64 -std=gnu++0x -I"/usr/include/R" -DNDEBUG   -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c ColorSpace.cpp -o ColorSpace.o
In file included from ColorSpace.cpp:1:
ColorSpace.h:19: error: ISO C++ forbids initialization of member ‘valid’
ColorSpace.h:19: error: making ‘valid’ static
ColorSpace.h:19: error: ISO C++ forbids in-class initialization of non-const static member ‘valid’
make: *** [ColorSpace.o] Error 1
ERROR: compilation failed for package ‘farver’
* removing ‘/usr/lib64/R/library/farver’

The downloaded source packages are in
    ‘/tmp/RtmpW8Ai7S/downloaded_packages’
Updating HTML index of packages in ‘.Library‘
Making ‘packages.html‘ ... done
Warning message:
In install.packages("farver") :
  installation of package ‘farver’ had non-zero exit status

 

REF

https://cran.r-project.org/web/packages/farver/index.html

farver: High Performance Colour Space Manipulation

The encoding of colour can be handled in many different ways, using different colour spaces. As different colour spaces have different uses, efficient conversion between these representations are important. The ‘farver‘ package provides a set of functions that gives access to very fast colour space conversion and comparisons implemented in C++, and offers speed improvements over the ‘convertColor‘ function in the ‘grDevices‘ package.

Version: 2.0.3
Suggests: testthat (≥ 2.1.0), covr
Published: 2020-01-16
Author: Thomas Lin Pedersen 技术图片 [cre, aut], Berendea Nicolae [aut] (Author of the ColorSpace C++ library), Romain Fran?ois 技术图片 [aut]
Maintainer: Thomas Lin Pedersen <thomasp85 at gmail.com>
BugReports: https://github.com/thomasp85/farver/issues
License: MIT + file LICENSE
URL: https://farver.data-imaginist.com, https://github.com/thomasp85/farver
NeedsCompilation: yes
SystemRequirements: C++11
Materials: README NEWS
CRAN checks: farver results

Downloads:

Reference manual: farver.pdf
Package source: farver_2.0.3.tar.gz
Windows binaries: r-devel: farver_2.0.3.zip, r-release: farver_2.0.3.zip, r-oldrel: farver_2.0.3.zip
macOS binaries: r-release: farver_2.0.3.tgz, r-oldrel: farver_2.0.3.tgz
Old sources: farver archive

Reverse dependencies:

Reverse imports: brickr, distributional, imgpalr, plothelper, prismatic, scales, tweenr
Reverse suggests: aqp

Linking:

Please use the canonical form https://CRAN.R-project.org/package=farver to link to this page.

error: ISO C++ forbids initialization of member ‘valid’

标签:std   local   offer   prot   library   removing   VID   pdf   int   

原文地址:https://www.cnblogs.com/emanlee/p/13912776.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!