* RE: building dll on Solaris with the use of gnu-cross-compiler!
[not found] <616BE6A276E3714788D2AC35C40CD18D5B27B0@whale.softwire.co.uk>
@ 2002-04-17 7:49 ` Rupert Wood
0 siblings, 0 replies; 2+ messages in thread
From: Rupert Wood @ 2002-04-17 7:49 UTC (permalink / raw)
To: 'Fredriksson, Johan'; +Cc: gcc-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* building dll on Solaris with the use of gnu-cross-compiler!
@ 2002-04-17 3:48 Fredriksson, Johan
0 siblings, 0 replies; 2+ messages in thread
From: Fredriksson, Johan @ 2002-04-17 3:48 UTC (permalink / raw)
To: help-gcc
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.
In the second atemt I created i an Entry-point without
using WINAPI...just a function returning int.
But when I use that I can't reach any of the functions inside my dll.
My questions are:
1.Am I not able to use gcc-cross-compiler and cygwin to build a dll on the
solaris platform?
2. Why am I forced to use WINAPI when I create my Entry-point? All the
examples I've seen use that?
Regards
Johan Fredriksson
Sweden
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-17 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <616BE6A276E3714788D2AC35C40CD18D5B27B0@whale.softwire.co.uk>
2002-04-17 7:49 ` building dll on Solaris with the use of gnu-cross-compiler! Rupert Wood
2002-04-17 3:48 Fredriksson, Johan
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).