> > We would need sort of 2 mac.H, > > one included by FLTK client applications, and one included > > when compiling the library itself. I'm not sure how to do that > > properly. > > If it is only because something should not included, this would be > easy to achieve with the definition of a macro. We do even have > such a macro already (FL_LIBRARY), see FL/Fl_Export.H: > > # if defined(FL_DLL) > # ifdef FL_LIBRARY > # define FL_EXPORT __declspec(dllexport) > # else > # define FL_EXPORT __declspec(dllimport) > # endif /* FL_LIBRARY */ > .... > > Albrecht
Thanks Albrecht. This FL_LIBRARY may be exactly what is needed to solve cleanly this issue. But what exactly is it used for at this point ? I see it set ONLY in src/CMakeLists.txt. Does it mean that not any makefile use it ? It would be useful for this issue if FL_LIBRARY is defined when compiling the library, but not when compiling an application that uses the FLTK public API. Is it possible to use it this way? _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
