Closed as not planned
Description
Dear all
Hi I'm completely new to R
Recently I'm installing chemoinformatic related tool written in R
and it requires Rcpp as a dependency
while i'm installing Rcpp I got following error
- installing source package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)’
g++ -std=gnu++11 -I"/usr/local/lib64/R/include" -DNDEBUG -I../inst/include/ -I/usr/local/include -fpic -g -O2 -c api.cpp -o api.o
In file included from ../inst/include/Rcpp/Module.h:524:0,
from ../inst/include/Rcpp.h:69,
from api.cpp:26:
../inst/include/Rcpp/module/class.h:115:96: error: expected ‘)’ before ‘(’ token
self& constructor( const char* docstring = 0, ValidConstructor valid = &yes_arity<sizeof...(T)> ){
^
../inst/include/Rcpp/module/class.h:115:99: error: expected initializer before ‘>’ token
self& constructor( const char* docstring = 0, ValidConstructor valid = &yes_arity<sizeof...(T)> ){
^
../inst/include/Rcpp/module/class.h:120:113: error: expected ‘)’ before ‘(’ token
self& factory( Class* (fun)(T...), const char docstring = 0, ValidConstructor valid = &yes_arity<sizeof...(T)> ){
^
../inst/include/Rcpp/module/class.h:120:116: error: expected initializer before ‘>’ token
self& factory( Class* (fun)(T...), const char docstring = 0, ValidConstructor valid = &yes_arity<sizeof...(T)> ){
^
../inst/include/Rcpp/module/class.h:271:84: error: expected ‘)’ before ‘(’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:271:87: error: expected initializer before ‘>’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:277:84: error: expected ‘)’ before ‘(’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:277:87: error: expected initializer before ‘>’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:283:84: error: expected ‘)’ before ‘(’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:283:87: error: expected initializer before ‘>’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:289:84: error: expected ‘)’ before ‘(’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:289:87: error: expected initializer before ‘>’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:295:84: error: expected ‘)’ before ‘(’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:295:87: error: expected initializer before ‘>’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:301:84: error: expected ‘)’ before ‘(’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h:301:87: error: expected initializer before ‘>’ token
const char* docstring = 0, ValidMethod valid = &yes_arity<sizeof...(T)>) {
^
../inst/include/Rcpp/module/class.h: In member function ‘Rcpp::class_::self& Rcpp::class_::default_constructor(const char*, Rcpp::ValidConstructor)’:
../inst/include/Rcpp/module/class.h:110:50: error: there are no arguments to ‘constructor’ that depend on a template parameter, so a declaration of ‘constructor’ must be available [-fpermissive]
return constructor( docstring, valid ) ;
^
../inst/include/Rcpp/module/class.h:110:50: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make: *** [api.o] Error 1
ERROR: compilation failed for package ‘Rcpp’ - removing ‘/usr/local/lib64/R/library/Rcpp’
It seems the error is related to C or C++ environment but I couldn't figure out what is the problem
I use
R-4.4.3
Rcpp_1.0.14
gcc-4.8.5
probably the reason can be that the version of gcc seems to be too outdated, but I'm not sure
Any kind of comments would be welcomed
Thanks
Metadata
Metadata
Assignees
Labels
No labels