The problem was with the proper initialization of global objects in the DLL. amd getting the right form of the function i.e. C or Pascal calling convention etc. I don't think it is a really big problem, but at the time the R people were so snotty and unpleasant that it didn't seem like fun. And fun should be what it is all about.