Hello Greg,

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

I read some forums looking for one solution for my problems but I didn't find 
one.

The question is:

I included this files:
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_PNG_Image.H>

And in one class I have this group that suppose to show an image:

     GroupNovoImage = new Fl_Group(0,0,155,385);
     fl_register_images(); 
     char text[20] = "mercurium01.png";
     Fl_PNG_Image png(text); 
     GroupNovoImage->image(png);
     GroupNovoImage->end();

and then I've got the following errors:

1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_destroy_read_struct referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_read_end referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_read_rows referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_set_interlace_handling referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_set_tRNS_to_alpha referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_get_valid referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_set_strip_16 referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_set_packing referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_set_expand referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_read_info referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_init_io referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_create_info_struct referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)
1>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: unresolved external symbol 
_png_create_read_struct referenced in function "public: __thiscall 
Fl_PNG_Image::Fl_PNG_Image(char const *)" (??0Fl_PNG_Image@@q...@pbd@Z)

I have included the following libraries:

fltkd.lib fltkzd.lib fltkjpegd.lib fltkimagesd.lib wsock32.lib comctl32.lib

Is the fltkzd.lib the zlib?

I hope you may help me!

Cheers,

  Newhunter




      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to