Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Undefined symbols for architecture x86_64: error on Xcode
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Bubbagump00" data-source="post: 1385612" data-attributes="member: 243894"><p>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...</p><p></p><p>Here's the error:</p><p></p><p></p><p>Undefined symbols for architecture x86_64:</p><p> "Fl_JPEG_Image::Fl_JPEG_Image(char const*)", referenced from:</p><p> Graph_lib::Image::Image(Point, String, Graph_lib::Suffix::Encoding) in Graph.o</p><p> "Fl_GIF_Image::Fl_GIF_Image(char const*)", referenced from:</p><p> Graph_lib::Image::Image(Point, String, Graph_lib::Suffix::Encoding) in Graph.o</p><p>ld: symbol(s) not found for architecture x86_64</p><p>clang: error: linker command failed with exit code 1 (use -v to see invocation)</p></blockquote><p></p>
[QUOTE="Bubbagump00, post: 1385612, member: 243894"] 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) [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Undefined symbols for architecture x86_64: error on Xcode
Top