On 22/12/10 10:10, Albrecht Schlosser wrote:

> I wonder whether we can successfully build the Windows dll's with
> GNU compilers (MinGW) ...

For the record, yes, I have built Windows DLL's of fltk using mingw from 
an Msys shell and they work fine - though I haven't tried it in the last 
few weeks, I assume it has not become broken in the meantime!

One big caveat with DLL's (of any sort, on any platform) and C++ is that 
unlike DLL's that expose a "plain-C" API, the DLL's created from C++ 
sources are not portable, because of the name-mangling differences 
between compiler versions.

So, the Windows DLL's created by the mingw toolchain from C++ code can 
not be used by the MS VS tools (and vice versa of course) and I have 
even encountered difficulties with C++ DLL's from ostensibly similar 
compilers - we know GCC has changed it's name-mangling a few times along 
the way, and it appears that some MS VS versions have done the same, so 
the DLL's you create might not be all that useful to anyone who does not 
have the exact same toolchain as you!

Static linking - you know it makes sense!

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to