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

Giuseppe Milicia Giuseppe.Milicia at makoglobal.com
Thu Apr 14 16:20:02 CEST 2011


Dirk,

>But about my polite request for help with Solaris cc compiler?  Could you
>help there?   You are the living being from planet Solaris to set foot in
>these corners and I mentioned, we do need some local help...

Thing is, I don't even have R built with the sun compiler. I had a quick go today and rather predictably run into mysterious (undocumented AFAIK) issues. Afraid it will take some work to even get that far. I could play with it in my spare time, but at the moment I don't have the means to help :( If I manage to get R to compile I'll have a go with Rcpp.

Here is the diff.

diff -ru Rcpp/inst/include/Rcpp/Environment.h Rcpp.patch//inst/include/Rcpp/Environment.h
--- Rcpp/inst/include/Rcpp/Environment.h        Fri Jan 14 00:34:02 2011
+++ Rcpp.patch//inst/include/Rcpp/Environment.h Thu Apr 14 15:10:49 2011
@@ -135,7 +135,7 @@
            template <typename T>
            operator T() const{
                    SEXP x = env.get(name) ;
-                   return as<T>(x) ;
+                   return Rcpp::as<T>(x) ;
            }


diff -ru Rcpp/inst/include/Rcpp/RObject.h Rcpp.patch//inst/include/Rcpp/RObject.h
--- Rcpp/inst/include/Rcpp/RObject.h    Fri Jan 14 00:34:02 2011
+++ Rcpp.patch//inst/include/Rcpp/RObject.h     Thu Apr 14 15:09:52 2011
@@ -147,7 +147,7 @@
                 * attribute and structure it as a T object using as
                 */
                template <typename T> operator T() const {
-                       return as<T>(get()) ;
+                       return Rcpp::as<T>(get()) ;
                }

        private:
@@ -198,7 +198,7 @@
                 * when as<T> makes sense
                 */
                template <typename T> operator T() const {
-                       return as<T>(get()) ;
+                       return Rcpp::as<T>(get()) ;
                }

        private:




---- 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>>


More information about the Rcpp-devel mailing list