public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Rupert Wood" <me@rupey.net>
To: "'Fredriksson, Johan'" <johan.fredriksson@tietoenator.com>
Cc: <gcc-help@gcc.gnu.org>
Subject: RE: building dll on Solaris with the use of gnu-cross-compiler!
Date: Wed, 17 Apr 2002 07:49:00 -0000	[thread overview]
Message-ID: <616BE6A276E3714788D2AC35C40CD18D561656@whale.softwire.co.uk> (raw)
In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D5B27B0@whale.softwire.co.uk>

Johan Fredriksson wrote:

> I'm trying to build a dll on the solaris platform with use of
> gcc-cross-compiler and cygwin. The problem is that if I use WINAPI
> when I create my dll-entry-point, as I should according to cygwin,
> the compiler or linker is not able to interpret windows.h.

Can you elaborate on this a little? What do you mean not able to
interpret? What error or warning to do you see?

WINAPI specifies the calling convention of the procedure; DLL-exported
functions should use the 'Pascal' convention that the callee cleans up
arguments passed, as opposed to the usual C convention that the caller
is responsible instead. The Microsoft keyword for this is (and what
WINAPI is #defined to in the Microsoft headers) is '__stdcall', which
cygwin/mingw GCC does support via the specs file and GCC's __attribute__
mechanism.

Rup.

       reply	other threads:[~2002-04-17 10:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <616BE6A276E3714788D2AC35C40CD18D5B27B0@whale.softwire.co.uk>
2002-04-17  7:49 ` Rupert Wood [this message]
2002-04-17  3:48 Fredriksson, Johan

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=616BE6A276E3714788D2AC35C40CD18D561656@whale.softwire.co.uk \
    --to=me@rupey.net \
    --cc=gcc-help@gcc.gnu.org \
    --cc=johan.fredriksson@tietoenator.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).