[R] Looking for protect()

Guido Masarotto guido at sirio.stat.unipd.it
Wed Jun 28 13:31:46 CEST 2000


On Mon, Jun 26, 2000 at 06:37:35PM -0400, Richards, Tom wrote:
> Hello:
> 
> This is a simple, I hope, question about the first example in section 3.6.4
> of the manual, "Writing R extensions."
> 
> I'm using R 1.1.0, and below I list some easy code that I got from section
> 3.6.4.  When I try to compile the file out.c under NT 4, using VC++ 6.0, I
> get the following error messages:
> 
> Compiling...
> out.c
> Linking...
> out.obj : error LNK2001: unresolved external symbol _Rf_unprotect
> out.obj : error LNK2001: unresolved external symbol _Rf_protect
> out.obj : error LNK2001: unresolved external symbol _Rf_allocMatrix
> out.obj : error LNK2001: unresolved external symbol _Rf_length
> 

  My supposition is that you are not linking against the export
  library for R.dll (all these functions are there).
  Details on how this can be done with Visual C are in 
  README.PACKAGES included in rw1010sp.zip.

  guido
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list