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 Stephen Zuniga Nov 24, 2022  
  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. 

I bought a copy of  Bjarne Stroustrup's "Programming: Principles and Practice Using C++ (2nd Edition)" and I came across the VS and FLTK set up link in his website that he recommended to review. 

I read above that the issue will be resolved in 1.3.9. As I am "new",  I thought it would be better for me to wait for 1.3.9 because I didn't quite understand the suggestions and what Ben did or what line numbers were changed in winnt.h.

Can you tell me the date you plan on releasing 1.3.9 as the latest stable release?

Any suggestions would be appreciated.

Thanks,
Steve

On Thursday, November 10, 2022 at 11:40:01 PM UTC-8 Ben Stucki wrote:
I fixed the code myself (just moved the #defines below the #includes as Matthias Melcher stated) and everything seems to work now!
Thanks to everyone that figured this out! You all are awesome!

On Thursday, November 10, 2022 at 5:11:30 PM UTC-7 Albrecht Schlosser wrote:
On 11/10/22 23:26 'Matthias Melcher' via fltk.general wrote:
Yes, there is a bug in resize box that I fixed in 1.4.0 a few days ago. The first lines of the source file contain #define B 0 , and only after those unhappy defines, the header files are included. So anything in the header that has a keyword "B" will have it replaced with the number "0".

Simply move the three #define lines after the include statement, and everything is peachy.

Done and committed in branch-1.3.


To the OP (Ben Stucki): we will release FLTK 1.3.9 soon which will fix this issue.


Until this is done you have several choices:

- Fix the source code yourself in test/resizebox as described above (please report if this fixes the issue for you).

- Delete or disable building the "resizebox" project in your version of the FLTK IDE project (fltk.sln).

- Install and use VS 2019 to build FLTK

--
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/c3035f05-7bbc-4424-a0d5-451268fb36dcn%40googlegroups.com.

Attachment: VS errors.JPG
Description: JPEG image

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'.