Skip to content
Prev 23850 / 398502 Next

.C() and C++ name mangling

Enclose the interface function, in your case gaRemin with extern "C"
statement like this:

extern "C"
{

	gaRemin(int *, float *, float *, int *, float *, float *, 
		float *, float *, float *) {
		...
	}

}

Also, look at the "Writing R Extensions" manual in R help, specifically
the chapter "System and foreign language interfaces", section
"Interfacing C++ code", for more information.

peter
On Wed, 2002-10-02 at 10:06, Andy Jacobson wrote:
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._