[6432] in s-news-athena

home help back first fref pref prev next nref lref last post

S-PLUS for Windows 3.2 with Watcom C 10.0a

daemon@ATHENA.MIT.EDU (StatSci Support)
Tue Feb 14 05:58:08 1995

Date: Tue, 14 Feb 1995 10:29:39 GMT
From: support@statsci.co.uk (StatSci Support)
Reply-To: support@statsci.co.uk
To: s-news@utstat.toronto.edu

We (Brian Ripley and I) have successfully used the current Watcom
compiler C/C++ version 10.0a to prepare dynamically linked code for
S-Plus for Windows 3.2. For the benefit of other would-be users here is
what we had to do to get this working:

edit SHOME\cmd\compile.bat
	change the compiler name from wcc386p to wcc386
	presumably wfc386p should be wfc386 too, if we had Fortran

ensure that SHOME\cmd was in the PATH 
	(It doesn't need to be to run S-Plus.)

edit the include files in SHOME\include
	(The compiler objects to scanning the SCCS lines. We commented
	them out.)

ensure that the Watcom directories BIN, BINB and BINW were in the PATH
and the environment variables WATCOM and INCLUDE were set 
	(By default the Watcom installation program will add the Watcom
	directories to PATH and set the environment variables. The
	setup options are added to autoexec.bat.)

Thus far all the code we have tried has run with minimal alterations.
There has been conflict with max and min macros, which appear to be
defined in Watcom and it objects to redefining them.  All dynamic 
loading objects have to be .obj rather than .o.

We have been unable to try static loading as the compatible Fortran is
not yet released (at least in the UK) and LOAD needs the Fortran 
library flib7.lib. The file SHOME/lib/makefile.tl needs wlinkp replaced 
by wlink. 

Frank Harrell recently posted a query about the use of / in place of \\
in file names. As we had anticipated, / was automatically converted to
\\ throughout, and one can even use mixtures as in

C:\\SPLUSWIN\\LIBRARY/MASS/ucv.obj

(which will occur in a library .First.lib call).  The only thing to
remember is when replacing unix() calls by dos() calls to 
use trans=T.  Most of the unix commands commonly used have
freely-available GNU equivalents.

The compiler appears to need a lot of file space (175Mb) but it is
only necessary to install a small part of this. We installed
for DOS and Win3.x platforms, with help files, in 22Mb.

Further details about using compiled code in S-PLUS for Windows 3.2
may be found in the S-PLUS for Windows Version 3.2 Supplement.


Brian will post shortly details of how to access a version of the
Venables & Ripley software which includes all the dynamically loaded
features and so is fully equivalent to the Unix version.


Richard A. SALDANHA (richard@statsci.co.uk)

+--------------------------------------+----------------------------------+
| Technical Support                    | e-mail   : support@statsci.co.uk |
| StatSci Europe                       | tel & fax:     01865 61000       |
| 52 Sandfield Rd, Oxford OX3 7RJ, UK. | outside UK: +44 1865 61000       |
+--------------------------------------+----------------------------------+

home help back first fref pref prev next nref lref last post