FLTK logo

Re: [fltk.general] Error when building FLTK-1.3.8 in Visual Studio

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Error when building FLTK-1.3.8 in Visual Studio Greg Ercolano Nov 24, 2022  
 

On 11/24/22 23:05, Stephen Zuniga wrote:

Hi everyone, thanks for your discussion. I came across Ben's question because I am having the same issue with Visual Studio 2022 and FLTK 1.3.8. I am attaching the same 2 errors at the same line discussed above.

Hi Stephen,

    Welcome to fltk!

    You can seriously just ignore the error, as it's just one of the test demo programs that fails
    to build, and won't affect your using the library or running the other test demos.

    But if you want to fix the 1.3.8 version you have, just find these three lines
    at the top of the test/resizebox.cxx file:

#define W1 (big ? 60 : 40)
#define B 0
#define W3 (5*W1+6*B)
    ..and move them below all the #include lines, so those three lines appear here instead:
...
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Radio_Button.H>
#include <FL/fl_draw.H>
#include <FL/fl_message.H>

#define W1 (big ? 60 : 40)
#define B 0
#define W3 (5*W1+6*B)

Fl_Double_Window *window;
Fl_Box *box;
...

    That will solve that build error.


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/4c412c3b-303e-418d-0390-9b3914a9872e%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.