[Rcpp-devel] Error linking: Undefined reference to...

Dirk Eddelbuettel edd at debian.org
Thu Sep 8 17:01:05 CEST 2011


On 8 September 2011 at 16:41, Bjørn Skogtrø wrote:
| That's true - I was a bit sloppy copying the lines. Forget the first one, so
| 
| PKG_LIBS+= -lRcpp
| PKG_LIBS+= -LC:/PROGRA~1/R/R-213~1.1/library/Rcpp/libs/i386
| 
| is all you need.

As AFAICT that is what our documentation says all along too :)

We currently use 

  ## make sure system.file returns an absolute path
  Rcpp.system.file <- function(...){
      tools:::file_path_as_absolute( base:::system.file( ..., package = "Rcpp" ) )
  }

Does this have an option on Windows to reliably generate 8.3 names, eg

    C:/PROGRA~1/R/R-213~1.1

instead of 

    C:/Programs and Documents/R/R-2.13.1 

which we could use?


Dirk

-- 
Two new Rcpp master classes for R and C++ integration scheduled for 
New York (Sep 24) and San Francisco (Oct 8), more details are at
http://dirk.eddelbuettel.com/blog/2011/08/04#rcpp_classes_2011-09_and_2011-10
http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php


More information about the Rcpp-devel mailing list