[Rcpp-devel] [Rd] Calling C++ from R
Dirk Eddelbuettel
edd at debian.org
Wed Feb 16 00:25:05 CET 2011
On 15 February 2011 at 16:02, Xiaochun Sun wrote:
| Thanks for your remind, actually I did upgrade to Rcpp 0.9.0 but didn't switch
| to RcppClassic. It fix now. Thanks.
Perfect, thanks for the feedback.
Most uses of the old API should be fixed by the one or two simple steps
outlined in the RcppClassic vignette.
Dirk
| Xiaochun
|
|
|
|
| On Tue, Feb 15, 2011 at 3:31 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
|
|
| Hi again,
|
| On 15 February 2011 at 13:09, Xiaochun Sun wrote:
| | Hi Dirk,
| |
| | I have used Rcpp to integrate C++ into R and successfully built my
| R-package
| | under Ubuntu using 32-bit R 2.11.1, however, when I switch to 64bit R
| 2.12.1,
| | the same code could not be compiled. The error is like
| |
| | error: ‘RcppVector’ was not declared in this scope.
| |
| | Do you have any idea what is going on? Thanks.
|
| Well we see that the header file declaring RcppVector is not loaded so
|
| -- either you made a mistake in your Makefile or src/Makevars
|
| -- or you upgraded to Rcpp 0.9.0 or later and didn't switch to
| RcppClassic as RcppVector is an old class from the old API
|
| But as you didn't tell us what you did and how you did it, we can't help
| any
| more. See eg the r-help guidelines for good error reports, similar sets
| of
| minimal information (ideally a small set of steps to replicable the issue)
| apply here too.
|
| Dirk
|
|
| | Xiaochun
| |
| |
| |
| |
| |
| |
| |
| | On Sat, Jan 22, 2011 at 1:21 PM, Dirk Eddelbuettel <edd at debian.org>
| wrote:
| |
| |
| | On 21 January 2011 at 11:32, Xiaochun Sun wrote:
| | | Many thanks for your reply. Rf_rnorm works very good with me.
| |
| | Glad to hear it helped, and let us know if you have other
| questions.
| |
| | Cheers, Dirk
| |
| | --
| | Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
| |
| |
|
| --
| Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
|
|
|
|
| --
| PhD student
| Quantitative/Statistical Genetics and Plant Breeding
| Illinois Plant Breeding Center, University of Illinois
| Urbana, IL 61801
| Phone(Cell):785-217-4242
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list