> > 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) It appears to be telling you that the objects you are linking do not have the required symbols to link as x86_64. Is it possible that some (or all?) of your code is linked as i386 only and that's what's throwing the errors? Also; I see you are using clang; did you try with gcc too, just in case there's some weirdness there? I'm not sure if anyone here actively uses Xc4 (I know I don't!) so it may be less thouroughly tested - though I think Matt was doing stuff with Xc4... SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

