Undefined symbols for architecture x86_64: error on Xcode

Joined
Mar 19, 2012
Messages
4
Reaction score
0
Points
1
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)
 
Joined
Aug 13, 2011
Messages
200
Reaction score
7
Points
18
Location
West Sussex
Linker errors are usually associated with not being able to connect to the correct library, so check you
have included or imported the necessary framework or library.

sorry I can't be more help.

Regards Mark
 
OP
B
Joined
Mar 19, 2012
Messages
4
Reaction score
0
Points
1
Thanks for the reply. I think the error may be due to using code originally written for FLTK version 1.1, whereas I am trying to run that code with FLTK 1.3...
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top