FLTK logo

STR #676

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 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]

STR #676

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:1 - Specific to a machine/printer
Subsystem:Image Support
Summary:compile error in fl_jpeg_image on vc6
Version:1.1.6
Created By:jedimasterthrash
Assigned To:mike
Fix Version:1.1.7 (SVN: v4034)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 jedimasterthrash
08:58 Dec 30, 2004
Building fltkimages in VC6 on WinXP

F:\Program Files\Microsoft Visual Studio\VC98\fltk-1.1.6\src\Fl_JPEG_Image.cxx(140) : error C2664: 'delete' : cannot convert parameter 1 from 'const unsigned char *' to 'void *'
        Conversion loses qualifiers

The line in the code is:
    delete[] array;

It of course works when I undefine the HAVE_LIBJPEG, so it's not of serious concern to me.

Thanks,
JMT.
 
 
#2 mike
22:01 Dec 30, 2004
Thanks, changing to:

    delete[] (uchar *)array;

should do the trick; we will update accordingly in the next release.
 
 
#3 mike
17:52 Feb 05, 2005
Fixed in Subversion repository.  
     

Return to Bugs & Features ]

 
 

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