I am using following thread as basis for writing C code with R in it R from C -- Simplest Possible Helloworld
i could compile and link c code with following cmds
$ gcc -Wall -I/cygdrive/c/Progra~1/R/R-2.13.0/include -c -ggdb Rhello.c
$ gcc -L/cygdrive/c/Progra~1/R/R-2.13.0/bin/i386 -o Rhello Rhello.o -lR
However I canNOT run the resulting executable with following command:
$ LD_LIBRARY_PATH=/cygdrive/c/Progra~1/R/R-2.13.0/bin R_HOME=/cygdrive/c/Progra~1/R/R-2.13.0 ./Rhello
All I get is a popup window saying "..stopped working...". I am on widowsvista & cygwin. can someone tell me what is the wrong with the above cmd.
thanks kris