Subject: Re: [R] Looking for protect()
From: Guido Masarotto (guido@sirio.stat.unipd.it)
Date: Wed 28 Jun 2000 - 21:31:46 EST
Message-ID: <20000628133146.A7950@sirio.stat.unipd.it>
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:24 EST