Skip to content
Back to formatted view

Raw Message

Message-ID: <26D5AB9F6512D611A8610001FA7E136F032783B2@se-drc-mail4.selu.astrazeneca.net>
Date: 2004-02-10T13:27:21Z
From: Lennart.Borgman@astrazeneca.com
Subject: The ttest.c example in R under MS Windows

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
Windows.


- Lennart