[R] Compile on NT

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Jul 1 08:35:15 CEST 1999

On Wed, 30 Jun 1999, Yoon, Hoon (CICG - NY Program Trading) wrote:

> Hi,
>   I am getting following error messages while trying to compile:
> cp -p man/*.Rd  ../../library/base/man
> rm -f  ../../library/base/man/BATCH.Rd  ../../library/base/man/COMPILE.Rd
> ../..
> /library/base/man/INSTALL.Rd  ../../library/base/man/REMOVE.Rd
> ../../library/ba
> se/man/RHOME.Rd  ../../library/base/man/SHLIB.Rd
> echo done > fixRd
> cp -p  bin/fwf2table bin/helpPRINT.bat ../../../bin
> echo done > fixbin
> cp -pr unzip ../..
> rm -f ../../unzip/*.h
> make -C ./regex
> gcc    -DHAVE_STRING_H  -c regex.c -o regex.o
> gcc: installation problem, cannot exec `cpp': No such file or directory
> make[1]: *** [regex.o] Error 1
> make: *** [rlibs] Error 2
>    Is this due to the unzip32.dll? Hope not. I am trying to recompile
> packages most of all, especially modreg.

No, it means what is says, that you have not installed gcc correctly.
Without knowing if you are trying to use Cygwin or mingw32 let alone which
version it is hard to help, but I would suspect GCC_EXEX_PREFIX (or some
such) is set incorrectly (or not set when it needs to be).  Make sure gcc
works for `hello world' programs first. If that works, check you set up
MkRules correctly.

> Plus, has anyone been able to extend or embed R using VC++? From what I
> hear, gcc and VC have different runtime, so this is a no go task. However,
> it is possible to use VC runtime by overwriting the original ones that comes
> with distriubution. That's why I am trying to recompile.

I don't understand. R uses the Windows libcrt.dll, and that is compatible
with VC++. It says in the documentation that you can compile packages with
VC++: look in the file readme.packages!  As for embedding, you can do that
too, but you will need to get the R-devel version and to compile it from
scratch.  (Embedding is `work in progress'.)  [gcc does not itself use a
runtime: different Windows implementations use libcrt, msvcrt and
cygwin1.dll. If you want to use msvcrt, patch egcs-1.1.2 with the 
patches on Mumit Kahn's site: but this is untested by us (more accurately,
tested once with some problems) and is not necessary for use with VC++.]

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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