[example] MingGW data import from a dll from another dll

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[example] MingGW data import from a dll from another dll

lkcl
i just encountered what _looked_ like a bug in mingw, and actually it
was that i was't using __declspc(dllimport) and __declspec(dllexport)
correctly, in a rather obscure usage case that, when you think about
it, it's "obvious" that it should work that way.
however, it turns out that if you _don't_ get this right, on
functions, then mingw copes absolutely fine and does the correct thing
anyway, but for imports and exports of data, it all goes horribly
horribly wrong.
as dll data import and export is pretty rare, i've done a write-up
including an example, so that anyone encountering this as a problem in
the future can hopefully find the example and the write-up with a
google search, and save themselves some pain.
http://lkcl.net/mingw/mingw-double-dll-import.html
l.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

_______________________________________________
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) HTML/MIME encoded mail
3) Improper quoting
4) Improper trimming
Reply | Threaded
Open this post in threaded view
|

Re: [example] MingGW data import from a dll from another dll

Roumen Petrov
Luke Kenneth Casson Leighton wrote:
> i just encountered what _looked_ like a bug in mingw, [SNIP]
> http://lkcl.net/mingw/mingw-double-dll-import.html

Please don't mix unix and windows export semantics.

Roumen

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

_______________________________________________
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) HTML/MIME encoded mail
3) Improper quoting
4) Improper trimming