> I am using fltk 1.1.9 in the visual studio 2005 developer and 
> I am with problems in using Fl_PNG_Image.



> and then I've got the following errors:
> 
> 1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: 
> unresolved external symbol _png_destroy_read_struct 


> I have included the following libraries:
> 
> fltkd.lib fltkzd.lib fltkjpegd.lib fltkimagesd.lib 
> wsock32.lib comctl32.lib


You are using the PNG library functions, but your list of linked
libraries does not include the PNG library.
You should also have a fltkpng.lib (or whatever the correct name is) in
there. It should be in the list before fltkzd.lib. 

Also, I would move fltkd.lib to come after all the other fltk libs, but
before any of the system libs (i.e. before wsock32.lib in this example.)
On many platforms, link order matters, so it is best to get this right
(although the MS tools do seem to be fairly tolerant of aberrant link
order.)


> Is the fltkzd.lib the zlib?

The "d" at the end of each name denotes that you are using the debug
versions of the libraries. Therefore fltkzd.lib would be the debug
version of fltkz.lib.
Which would be the fltk built-in version of zlib.

Actually, the names look odd, that is not how I would expect the names
to be formed, I would have expected flkt_z.lib. But I don't often use
the MS tools, and maybe that is how the names are formed for those
tools?

SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to