Alexander Hirsch wrote:
> Hello FLTK-Team,
> I had to fix some stuff to get all libraries compiled and linked in
> MSVS 9 (Express Edition), so I thought I'd let you know.

Thanks for your long post, but I'm not a FLTK2 developer, and I
don't have MSVS 9. Here are my comments:

- fltk.bugs is intended to mirror entries made in the bug reporting
   system at http://www.fltk.org/str.php . Please post your report
   there so that it won't be forgotten.
- It would be helpful, if you could post a diff file, but I'm not sure
   if the MS project files are "diff'able" text
- and see below

> In case that the information is needed, I'm on a 32-bit Windows XP SP2 
> platform.
> 
> At first in Window_fullscreen.cxx for Window::maximize it is checked
> if __WIN32__ is defined, but the the projects fltk and fltkdll only
> define WIN32, so adding __WIN32__ to the preprocessor defines fixes
> that.

The correct fix would be to change it to "WIN32" instead, but I also found
lots of "_WIN32" in the FLTK2 code, hence I'm not sure which is correct.

> You might also want to use fltk::warning instead of #warning a few lines down.

Yes, the FLTK1 team found that #warning might be a gcc-only feature.

> For the release-configuration I changed the linker dependencies of the
> resize-project from fltk.lib to fltk2.lib. It is already fine for the
> debug-configuration.
> 
> For the debug-configuration I removed glaux.lib from the
> fractals-project. I didn't have that and it compiled fine without it.
> 
> To get rid of many unresolved external symbols I added
> WidgetAssociation.cxx to the fltk and fltkdll projects.
> 
> For the cairo_test-project you seem to not need the cairo.lib, as
> removing it from the dependencies led to a successful build with the
> release-configuration (it was already 'missing' in the
> debug-configuration).
> 
> I added some explicit casting to conquer warnings and a
> __declspec(dllimport) in run.cxx if _MSC_VER is defined for a warning
> with BOOL WINAPI TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack);.
> 
> I didn't test the debug cairo-configuration nor the release
> minsize-configuration yet.

Thanks for your help

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

Reply via email to