From: Richard Stanton <stanton@haas.berkeley.edu>
To: jeffdb@netzone.com
Cc: gnu-win32@cygnus.com
Subject: Re: DLL help needed...
Date: Tue, 23 Dec 1997 09:32:00 -0000 [thread overview]
Message-ID: <9712231654.AA0664@volans75.wco.com> (raw)
In-Reply-To: <349f7828.48009513@smtp.netzone.com>
>>>>> ">>" == Mikey <jeffdbREMOVETHIS@netzone.com> writes:
> [c:\projects\excel]exe
> i 10.000000, j 11.000000, k -1.#IND00
>> Could this help?
>> __attribute__((__stdcall__)) double RHS (double x, double y)
> {
> return (x + y);
> }
Thanks for the suggestion. It makes some difference, but unfortunately
not to the output!
With this change, I no longer need to compile with the -mrtd option,
and I need to change my dll.def file - using -mrtd I need
RHS
RHS@16=RHS
Using the explicit stdcall attribute in the .C file, and compiling
without -mrtd, the DEF file needs to be the other way round:
RHS@16
RHS=RHS@16
However, the program output is the same:
C:\PROJECTS\excel>exe
i 10.000000, j 11.000000, k -1.#IND00
Again, if I use exactly the same files, but replacing every "double"
with a "short", (and RHS@4 instead of RHS@16 where appropriate) the
program runs perfectly.
I just tried again, this time removing all stdcall references. The
program still fails, but this time I get
C:\PROJECTS\excel>exe
i 10.000000, j 11.000000, k 0.000000
(the last number is supposed to be the sum of the other two)
I'm still confused...
Richard Stanton
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
next parent reply other threads:[~1997-12-23 9:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <349f7828.48009513@smtp.netzone.com>
1997-12-23 9:32 ` Richard Stanton [this message]
1998-11-10 19:28 Murugan Muthusamy
-- strict thread matches above, loose matches on Subject: below --
1998-11-08 2:27 Carlos Albar-Diaz
1998-11-08 2:27 Carlos Albar-Diaz
1998-11-08 2:27 Carlos Albar-Diaz
1998-11-09 7:48 ` Jens Yllman
1998-11-14 3:05 ` Carlos Albar-Diaz
1998-11-14 8:41 ` Mumit Khan
1997-12-22 13:23 Richard Stanton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9712231654.AA0664@volans75.wco.com \
--to=stanton@haas.berkeley.edu \
--cc=gnu-win32@cygnus.com \
--cc=jeffdb@netzone.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).