On 21.03.2012 15:51, Bubba wrote:
> Hi, I am using Xcode 4 and trying to set up FLTK 1.3.0 to run Bjarne
> Stroustrup's Chapter 12 FLTK Demo at the end of the chapter. I keep getting
> the following error when compiling, and have no idea where to go. I have an
> idea it might have to do with the linker flags, but I don't know what flag to
> add and where...
>
> Here's the error:
>
>
> Undefined symbols for architecture x86_64:
>"Fl_JPEG_Image::Fl_JPEG_Image(char const*)", referenced from:
>Graph_lib::Image::Image(Point, String, Graph_lib::Suffix::Encoding) in
> Graph.o
>"Fl_GIF_Image::Fl_GIF_Image(char const*)", referenced from:
>Graph_lib::Image::Image(Point, String, Graph_lib::Suffix::Encoding) in
> Graph.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
Please don't post directly to fltk.bugs, this is reserved for FLTK's
bug tracking system (www.fltk.org/str.php). Your post is more like a
general user question, so you should use fltk.general for this.
Anyway, trying to answer your question: Either you didn't include
-lfltk_images (the image libraries), or (ISTR) you could try to switch
the compiler settings from clang to gcc/g++.
If this doesn't help, please ask again in fltk.general.
Albrecht
___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs