[19015] in s-news-athena
Re: [S] dll.load() with mingw32/gcc-g77
daemon@ATHENA.MIT.EDU (Ignatius Reilly)
Mon Aug 23 18:38:28 1999
Message-Id: <19990823223223.12768.rocketmail@web119.yahoomail.com>
Date: Mon, 23 Aug 1999 15:32:23 -0700 (PDT)
From: Ignatius Reilly <ar_menio@yahoo.com>
To: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
Cc: s-news@wubios.wustl.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Thanks to Prof. Brian D. Ripley for his comments and suggestions. I
followed them and got my libraries to work.
A couple of comments.
--- Prof Brian D Ripley <ripley@stats.ox.ac.uk> wrote:
[...]
> I think your solutions export no symbols, unless --export-all-symbols
> can be abbreviated. You don't need an export lib for your own .o.
Actually the problem seems to have been that I didn't use the argument
"symbols" in dll.load(). The objects were in fact in the .dll file,
because the following line loaded the object from my old .dll file.
> dll.load("[path]/mys.dll", call="cdecl", symbols="mystuff_")
I was somewhat puzzled by Prof. Ripley's suggestion to use .C() to run
my (originally) Fortran code. .C() worked perfectly. I guess this is
due to the fact that internally "g77 = f2c + gcc"? In any case, I've
tried to use .Fortran() and it worked as well. Maybe my simple code
will run with both functions but a more sophisticated one will need
.C()?
Thanks again.
Matias
---
Matias Salibian
Department of Statistics
University of British Columbia
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news