Skip to content
Prev 2308 / 10988 Next

[Rcpp-devel] Function does not compile on Mac OSX

Hi,

Here is a small example:


library("Rcpp")
library("inline")

fun <-cxxfunction(,
'
Environment e = Environment::global_env();
NumericVector bar = e["foo"];
bar = bar + 1;
return wrap(bar);
',plugin="Rcpp")

foo <- 1:10

fun()

This function works fine on my windows netbook, but does not work on my
supervisors mac. His computers specs are:

++++++++++

platform       i386-apple-darwin9.8.0
arch           i386
os             darwin9.8.0
system         i386, darwin9.8.0
status
major          2
minor          13.0
year           2011
month          04
day            13
svn rev        55427
language       R
version.string R version 2.13.0 (2011-04-13)


++++++++++++++

packageDescription('Rcpp')
Package: Rcpp
Title: Seamless R and C++ Integration
Version: 0.9.4


+++++++++++++++
Package: inline
Version: 0.3.8
Date: 2010-12-07
++++++++++++++++
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Best,
Sacha

2011/5/16 Romain Francois <romain at r-enthusiasts.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110516/ac72cd4f/attachment.htm>