[R] DLLs using Borland
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Fri Jan 21 22:15:51 CET 2000
On Fri, 21 Jan 2000, Russ Lenth wrote:
> I wrote a DLL in C that does some MCMC stuff. It is compiled using
> Borland's C++ Builder, version 3.0 (build 3.70) on a Windows 98 machine.
> The DLL loads and runs just fine. But then if I subsequently call R's
> plot() function, I get an illegal operation message and R crashes. In
> fact, I've found that this happens even if I merely load the DLL, don't
> ever run it, and then try to plot something. I do NOT have this problem
> if I load the sample DLL that comes with R, so I know it's a problem
> with the way my DLL is built. The version and the error messages are
> Does anybody have experience with building DLL's with Borland products?
No. Looks like a symbol conflict between MathSoft and Borland libraries.
> Or some other compiler -- I have no particular loyalties, I just used
> what I had. Any help would be appreciated.
The recommended compiler is free and of a very high quality. Do try it.
See INSTALL/readme.packages for details.
> R : Copyright 1999, The R Development Core Team
> Version 0.90.1 (December 15, 1999)
> RGUI caused an exception 10H in module CRTDLL.DLL at 016f:7fc49ef3.
> EAX=00000420 CS=016f EIP=7fc49ef3 EFLGS=00000212
> EBX=0253e3d8 SS=0177 ESP=0253e344 EBP=0253e354
> ECX=0253e35c DS=0177 ESI=0253e65a FS=56a7
> EDX=00000000 ES=0177 EDI=c0000090 GS=0000
> Bytes at CS:EIP:
> 8b 45 08 83 c0 08 f6 00 10 74 03 80 23 fe f6 00
> Stack dump:
> 00000008 0253e642 0253e65a 0253e642 0253e3dc 7fc4a684 0253e380 0253e3d8
> 00000008 0000001b 0253e64a 0253e65a 0253e652 0253e6e0 7fc52e76 04660360
That is completely useless except on your machine.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help