On 22.12.2010 15:25, [email protected] wrote: > 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!
Then I must conclude that the comment in FL/Fl_Export.H is ... well, let's say... not precise and should be changed to say that this is only needed "when using the MS development tools" ? /* * The following is only used when building DLLs under WIN32... */ I apologize for not researching, but I don't have the time now... Then all this __declspec(dllexport) and __declspec(dllimport) is not Windows-specific but MS-tools-specific? [... more useful text elided ... > Static linking - you know it makes sense! Yep, I know. That's why I don't have experience with building FLTK as a dll ;-) -- but I did with other plain C code, and I managed to build a dll with Cygwin/MinGW that is used in an application created with MS tools (AFAICT, at least it was some years ago. I don't know what they are doing today, but my dll is still working - "they" are calling functions from my dll). Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
