README.txt for the standalone version of earth ---------------------------------------------- . This package contains the files to build a standalone version of earth (it uses the R DLLs and they are included in this package). . To build under Visual C 6.0: cl -nologo -DSTANDALONE -DMAIN -TP -Zi -W3 -MLd -I. -Fo"Debug/" -c earth.c link -nologo -debug:full -out:earthmain-vc6.exe Debug\earth.obj Rdll.lib Rblas.lib earthmain-vc6.exe That builds a Debug version. For a Release version, change the flags in cl and link above as appropriate. . To build and under mingw gcc (tested on gcc 4.2.1-sjlj mingw32-2) gcc -DSTANDALONE -DMAIN -Wall -pedantic -Wextra -O3 -std=gnu99 -I. earth.c Rdll.lib Rblas.lib -o earthmain-gcc.exe earthmain-gcc.exe . To modify earth for your environment, look at the main() routine in earth.c . Most of these files in this package were copied from the standard R directories. Have a look at get-files.bat in this directory for details. Also check out the other batch files in this directory. Have fun! Steve Milborrow Forden Wales Aug 2007