[R] The ttest.c example in R under MS Windows

Lennart.Borgman@astrazeneca.com Lennart.Borgman at astrazeneca.com
Tue Feb 10 14:27:21 CET 2004

We are trying to compile and run the ttest.c example that comes with R (in
C:\Program Files\R\rw1081\src\library\windlgs\src\ttest.c). After compiling
it with MS Visual C++ we load the DLL with dyn.load. 

So far it seems good, but when we try to call it from R (after running
C:\Program Files\R\rw1081\src\library\windlgs\R\windlgs.R) R crashes.

We have tried changing the exports from DLL but have failed so far. Since I
have a guy helping me who is fluent in MS Visual C++ I believe we are
missing something crucial. Have anyone compiled and used the example above
using MS Visual C++? Has anyone done this using the gcc (or Mingw) compiler
on MS Windows?

I would be very glad to find a complete example for compiling under MS

- Lennart

More information about the R-help mailing list