R-beta: Characters in .C

Ian Wilson (I.Wilson@qmw.ac.uk)
Tue, 5 Aug 97 10:54:36 BST


From: Ian Wilson <I.Wilson@qmw.ac.uk>
Date: Tue, 5 Aug 97 10:54:36 BST
Message-Id: <21004.9708050954@laplace.maths.qmw.ac.uk>
To: r-help@stat.math.ethz.ch
Subject: R-beta: Characters in .C


I am having some difficulties using dynamically loaded
C functions on a Sparc 10 with R compiled
using cc  (both R-0.49 and R-0.50).  I get sporadic errors with the 
error message:
Error: character variables must be duplicated in .C/.Fortran,
with C functions which pass character variables.

my C functions look like:  anyfunc(char **filename, other variables )

This error message appears about 25% of the time.

What is the problem ? 

Ian

Dr Ian Wilson
Dept of Biological Sciences
Queen Mary and Westfield College
Mile End Road
London E1 4NS
Tel: 0171 775 3055
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=