From: Luke Kenneth Casson Leighton <lkcl@lk...> - 2009-01-26 13:01:44
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
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.