{"id":901,"date":"2022-08-30T15:09:04","date_gmt":"2022-08-30T15:09:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/xcode-4-fltk-1-3-0-undefined-architecture-x86_64-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:09:04","modified_gmt":"2022-08-30T15:09:04","slug":"xcode-4-fltk-1-3-0-undefined-architecture-x86_64-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/xcode-4-fltk-1-3-0-undefined-architecture-x86_64-collection-of-common-programming-errors\/","title":{"rendered":"Xcode 4 FLTK 1.3.0 undefined architecture x86_64-Collection of common programming errors"},"content":{"rendered":"<blockquote>\n<p>Hi, I am using Xcode 4 and trying to set up FLTK 1.3.0 to run Bjarne Stroustrup&#8217;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&#8217;t know what flag to add and where&#8230;<\/p>\n<p>Here&#8217;s the error:<\/p>\n<p>Undefined symbols for architecture x86_64: &#8220;Fl_JPEG_Image::Fl_JPEG_Image(char const*)&#8221;, referenced from: Graph_lib::Image::Image(Point, String, Graph_lib::Suffix::Encoding) in Graph.o &#8220;Fl_GIF_Image::Fl_GIF_Image(char const*)&#8221;, 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)<\/p>\n<\/blockquote>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:56:21. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Hi, I am using Xcode 4 and trying to set up FLTK 1.3.0 to run Bjarne Stroustrup&#8217;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, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-901","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=901"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/901\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}