On 2 Mar 2012, at 23:34, nidhi wrote: > I was trying to install an application that uses FLTK. The application needs > a 32 bit build, so I configured FLTK 1.3 for it, but when I try to build it, > it comes back with this error: > > > Undefined symbols for architecture i386: > "_png_set_longjmp_fn", referenced from: > Fl_PNG_Image::load_png_(char const*, unsigned char const*, int)in > libfltk_images.a(Fl_PNG_Image.cxx.o) > ld: symbol(s) not found for architecture x86_64 > collect2: ld returned 1 exit status
Something is awry in your build - if you have correctly set things up for 32 bit builds, why is the error talking about x86_64? Once you figure that out I'd guess that all will be well. > which makes me wonder if I cant use 1.3 for a 32 bit build. Works just fine for 32 or 64 bit builds in my experience. > > Anyone has nay ideas on this ? The error you flagged would suggest that you have a mix of 32-bit and 64-bit stuff going into your final object, and it is that which is causing the problem. Once you clean things up to be either all-32-bit or all-64-bit I'd expect things to go a lot more smoothly. I can't tell you how to do that, as I have no idea what tools or system you are on, and the tweaks necessary to persuade any given build system to do the Right Thing can tend to be a little platform specific... However, rest assured that others are doing this and it Just Works, so you should be fine! _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

