On Fri, 26 Nov 2004, Markus Helbig wrote:
> I tried to cross-compile the newest release 2.0.1 on a linux machine, but i
> always got an error at the following stage
>
> DHAVE_CONFIG_H -DR_DLL_BUILD -c dynload.c -o dynload.o
> dynload.c: In function `R_loadLibrary':
> dynload.c:94: warning: implicit declaration of function `_controlfp'
> dynload.c:94: error: `_MCW_IC' undeclared (first use in this function)
> dynload.c:94: error: (Each undeclared identifier is reported only once
> dynload.c:94: error: for each function it appears in.)
> dynload.c:95: warning: implicit declaration of function `_clearfp'
> dynload.c:99: error: `_MCW_EM' undeclared (first use in this function)
> dynload.c:99: error: `_MCW_RC' undeclared (first use in this function)
> dynload.c:99: error: `_MCW_PC' undeclared (first use in this function)
> make[4]: *** [dynload.o] Error 1
> make[3]: *** [../../bin/R.dll] Error 2
> make[2]: *** [rbuild] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
`/home/markus/Development/r-project/WinR/R-2.0.1/
> src/gnuwin32'
>
> Anybody knows what do to now?
Check up that your cross--build setup is complete and MkRules was set
correctly. These declaration are in .../i586-mingw32/include/float.h and
I guess you probably haven't set HEADER in MkRules.
--
Brian D. Ripley, ripley@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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595