[19001] in s-news-athena
[S] dll.load() with mingw32/gcc-g77
daemon@ATHENA.MIT.EDU (Ignatius Reilly)
Sun Aug 22 19:49:26 1999
Message-Id: <19990822234300.16169.rocketmail@web123.yahoomail.com>
Date: Sun, 22 Aug 1999 16:43:00 -0700 (PDT)
From: Ignatius Reilly <ar_menio@yahoo.com>
To: s-news@wubios.wustl.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Hi there,
I'm trying to load some f77 code by building a DLL and then using
dll.load() on S+2000 under Win98 (as some tech-support people suggested
earlier on this list).
I've downloaded the last version of mingw32/gcc (2.95) and everything
seems to work fine.
In order to build the .dll file I follow some instructions in the
"ftp://.../gnu-win32/mingw32/misc/README.dllhelpers" file.
Specifically on the MS-DOS prompt I type:
g77 -c -g -o mys.o mystuff.f
dlltool --export-all --output-def mys.def mys.o
dlltool --dllname mys.dll --def mys.def --output-lib mys.a
dllwrap --driver-name g77 --def mys.def -o mys.dll mys.o mys.a
then, on S+2000/Win98 I type
> dll.load("[path]/mys.dll")
[1] 1
> .Fortran('mystuff',...)
Error in .Fortran("mystuff",: "MYSTUFF" is not a symbol in the load
tabl
and the reason seems to be that the file "mys.dll" doesn't have any
symbol, as shown by
> dll.load.info("c:[path]\\mys.dll")
$"c:[path]\\mys.dll":
character(0)
Does anybody have any experience on using this port of gcc to do this?
Am I missing something? Am I completely off? Any help, pointer, hint or
comment will be greatly appreciated! If it's of any interest to the
rest of the list I'll post a summary of the replies I get.
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