[Rcpp-devel] Conflit with sys/vnode.h on Solaris (gcc 4.4.3)

Giuseppe Milicia Giuseppe.Milicia at makoglobal.com
Tue Apr 12 17:43:26 CEST 2011


Guys,

I was wondering if anyone has seen a conflict between Rcpp and sys/vnode.h on Solaris (gcc 4.4.3, R-2.12.2).

This could be my fault entirely but before I spend a few hours on this I thought I might just ask...

This is the error and indeed at like 565 of sys/vnode.h we have "struct as;"

In file included from /.../Rcpp/include/Rcpp.h:32,
                 from XXX.cc:10:
/usr/include/sys/vnode.h: In member function 'Rcpp::RObject::SlotProxy::operator T() const [with T = SEXPREC*]':
/.../Rcpp/include/Rcpp/DataFrame.h:47:   instantiated from here
/usr/include/sys/vnode.h:565: error: 'struct as' is not a function,
/.../Rcpp/include/Rcpp/as.h:74: error:   conflict with 'template<class T> T Rcpp::as(SEXPREC*)'
/.../Rcpp/include/Rcpp/RObject.h:201: error:   in call to 'as'
/usr/include/sys/vnode.h: In member function 'Rcpp::RObject::AttributeProxy::operator T() const [with T = SEXPREC*]':
/.../Rcpp/include/Rcpp/DataFrame.h:48:   instantiated from here
/usr/include/sys/vnode.h:565: error: 'struct as' is not a function,
/.../Rcpp/include/Rcpp/as.h:74: error:   conflict with 'template<class T> T Rcpp::as(SEXPREC*)'
/.../Rcpp/include/Rcpp/RObject.h:150: error:   in call to 'as'
In file included from /.../Rcpp/include/Rcpp.h:39,
                 from XXX.cc:10:
/usr/include/sys/vnode.h: In member function 'Rcpp::Environment::Binding::operator T() const [with T = Rcpp::Function]':
/.../Rcpp/include/Rcpp/InternalFunction.h:46:   instantiated from here
/usr/include/sys/vnode.h:565: error: 'struct as' is not a function,
/.../Rcpp/include/Rcpp/as.h:74: error:   conflict with 'template<class T> T Rcpp::as(SEXPREC*)'
/.../Rcpp/include/Rcpp/Environment.h:138: error:   in call to 'as'

Any ideas would be appreciated.

Cheers,

//Giuseppe

________________________________
---- MAKO ----
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately by e-mail and delete this e-mail from your system. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Mako Group. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action with respect to the contents of this information is strictly prohibited. Finally, the recipient should check this email and any attachments for the presence of viruses. The Mako Group accepts no liability for any damage caused by any virus transmitted by this email.
For important disclosures please click <<http://www.makoglobal.com/UKRegulatoryNotice.htm>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110412/54a9200f/attachment.htm>


More information about the Rcpp-devel mailing list