On 03/02/12 15:34, nidhi wrote:
> 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


        You can make 32bit builds.

        What appears to be going on here is a mix of 32bit and
        64bit built libs.

        Be sure you built FLTK and your app as 32bit apps,
        and make sure you're linking against the right libs
        by specifying absolute paths, so you don't accidentally
        include 64bit libs in your build.

        If you're sure you're linking against the right libs,
        then make sure those libs really were build with 32bit
        flags.

        To check FLTK, you can comment out the .SILENT line in
        the makeinclude file in FLTK's main directory, so that
        when you do a 'make clean; make', you can carefully check
        all the g++/ld lines to be sure 32bit flags are in there.

        I take it you're trying to build 32bit bins on a 64bit
        machine, so you have to be careful that 32bit libs are
        on the box, and that the compiler/link flags are all set
        carefully to avoid an accidental 64bit build/link.


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

Reply via email to