> > On 01/07/13 16:00, George wrote [on fltk.bugs, moved to fltk.general]: > > > Hy I'm trying to compila a code with fltk and i get the following errors: > > > > > > 1>main1.obj : error LNK2019: unresolved external symbol "public: > > > __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" > > > (??0Fl_JPEG_Image@@QAE@PBD@Z) referenced in function _main > > > > > > 1>main1.obj : error LNK2019: unresolved external symbol "void __cdecl > > > fl_register_images(void)" (?fl_register_images@@YAXXZ) referenced in > > > function _main > > > > > > 1>C:\Users\Geo\Desktop\proiect-test-fltk\ProiectOOP\ProiectOOP\Debug\ProiectOOP.exe > > > : fatal error LNK1120: 2 unresolved externals > > > > > > If i create a simple window or a menu item it works just fine but in this > > > case it seems it can't find the lib with the code and i don't know which > > > they are and how to add them. need help pls > > > > To make use of fltk's image methods/functions, you'll need to link with > > fltk_images.lib (in addition to fltk.lib). > > > > The reason for this: some apps don't need to work with images, so the > > image > > related operations were kept in a separate lib to simplify linking for > > those > > that don't need it. > > > > Same was done for opengl related functions/methods. > > > > If i include fltkimadesd.lib i get other 10 LNK errors like: > >fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external > >symbol _jpeg_read_scanlines referenced in function "public: __thiscall > >Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE@PBD@Z) > 1>fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external > symbol _jpeg_start_decompress referenced in function "public: __thiscall > Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE@PBD@Z) > 1>fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external > symbol _jpeg_calc_output_dimensions referenced in function "public: > __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" > (??0Fl_JPEG_Image@@QAE@PBD@Z) > 1>fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external > symbol _jpeg_read_header referenced in function "public: __thiscall > Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE@PBD@Z)
My bad :D i forgot to include fltkjpegd.lib as well _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

