R-beta: Sun native compiler SC2.0.1, R-0.62.x

gordon.harrington@uni.edu gordon.harrington at uni.edu
Sat Sep 12 23:25:02 CEST 1998

Several multiple definition fatal errors occur compiling R-0.62.2 and more with
0.62.3 using the Sun native compiler SC2.0.1. Earlier versions of R did not
present the problem. It does not occur with gcc.

The problem lies in the SC2.0.1 library in sunmath.h which is not fully ANSI
compliant. The compiler, with appropriate options, compiles non-ANSI usages but
does not recognize alternatives as aliases of each other. Thus it will properly
compile either "long" or "int" but it will not accept a variable which is
defined as "int" in one place and as "long" in another. I have not seen any
released patch for the includes to make them ANSI compliant.

Since R is a work in progress it seems better to use gcc than to tinker with
the Sun library or with program coding to gain the slight advantages of native
compiler optimization. 


Gordon M. Harrington		Mail:	3720 Village Place, #6308
Professor Emeritus			Waterloo, IA 50702-5848
University of Northern Iowa 	Phone:	319-291-8535
gordon.harrington at uni.edu	Fax:	319-291-8324

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