{"id":29,"date":"2007-11-30T09:49:42","date_gmt":"2007-11-30T08:49:42","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/2007\/11\/30\/compiling-universal-binaries-in-mac-osx-105-leopard-against-104u-sdk-problem\/"},"modified":"2008-10-21T22:29:30","modified_gmt":"2008-10-21T21:29:30","slug":"compiling-universal-binaries-in-mac-osx-105-leopard-against-104u-sdk-problem","status":"publish","type":"post","link":"http:\/\/www.miscdebris.net\/blog\/2007\/11\/30\/compiling-universal-binaries-in-mac-osx-105-leopard-against-104u-sdk-problem\/","title":{"rendered":"Compiling universal binaries in Mac OSX 10.5 (Leopard) against 10.4u SDK problem"},"content":{"rendered":"<p><strong>The hint below is actually a hack. The correct solution would be to add &#8220;-mmacosx-version-min=10.4&#8221; to the compiler and linker command as mentioned in <a href=\"http:\/\/lists.apple.com\/archives\/Xcode-users\/2007\/Oct\/msg00696.html\" target=\"_blank\">this post<\/a> or follow the comment below this post.<\/strong><\/p>\n<p>If you compile a programm\/library on Mac OS X 10.5 (Leopard) against the 10.4u SDK as suggested in this <a href=\"http:\/\/developer.apple.com\/technotes\/tn2005\/tn2137.html\" target=\"_blank\">technote<\/a> to create a universal binary you may encounter this error message:<\/p>\n<pre>ld: library not found for -lcrt1.10.5.o<\/pre>\n<p>In that case you need to create a symbolic link<\/p>\n<pre>sudo ln -s \/Developer\/SDKs\/MacOSX10.4u.sdk\/usr\/lib\/crt1.o \/Developer\/SDKs\/MacOSX10.4u.sdk\/usr\/lib\/crt1.10.5.o<\/pre>\n<p>This might solve the linking problem than. This hint was found <a href=\"http:\/\/angelol.soup.io\" target=\"_blank\">here<\/a> and <a href=\"http:\/\/groups.google.com\/group\/vim_mac\/browse_thread\/thread\/064da55ec412e768\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The hint below is actually a hack. The correct solution would be to add &#8220;-mmacosx-version-min=10.4&#8221; to the compiler and linker command as mentioned in this post or follow the comment below this post. If you compile a programm\/library on Mac OS X 10.5 (Leopard) against the 10.4u SDK as suggested in this technote to create &hellip; <a href=\"http:\/\/www.miscdebris.net\/blog\/2007\/11\/30\/compiling-universal-binaries-in-mac-osx-105-leopard-against-104u-sdk-problem\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Compiling universal binaries in Mac OSX 10.5 (Leopard) against 10.4u SDK problem<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[10],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-macosx"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-t","_links":{"self":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/29"}],"collection":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":2,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":75,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions\/75"}],"wp:attachment":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}