• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't link to libiconv building Objective Git
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't link to libiconv building Objective Git


  • Subject: Can't link to libiconv building Objective Git
  • From: David Catmull <email@hidden>
  • Date: Sat, 21 Jun 2014 22:14:16 -0600

I'm trying to build Objective Git, and I'm having a linker error that doesn't seem to be reproducible on other machines:

Undefined symbols for architecture x86_64:
  "_libiconv", referenced from:
      _git_path_iconv in libgit2.a(path.c.o)
  "_libiconv_close", referenced from:
      _git_path_iconv_clear in libgit2.a(path.c.o)
  "_libiconv_open", referenced from:
      _git_path_iconv_init_precompose in libgit2.a(path.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


The project links to libiconv by including it in the project (at usr/lib/libiconv.dylib relative to SDK, and building with the 10.9 SDK), and including that in the link build phase. Using a -liconv linker flag instead yields the same result. I've ensured I have a clean build, and even reinstalled Xcode in case the library was corrupted. A simple test project that links to libiconv built with no problems, and I can't see any significant differences between it and the Objective Git project.

What else could be causing this error?


-- 

David Catmull

email@hidden

http://www.uncommonplace.com/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: "Symbol not found: _NSHTTPCookieExpires" when app built with Xcode 6
  • Next by Date: Re: "Symbol not found: _NSHTTPCookieExpires" when app built with Xcode 6
  • Previous by thread: Re: "Symbol not found: _NSHTTPCookieExpires" when app built with Xcode 6
  • Next by thread: When is an unaligned memory access illegal on ARM?
  • Index(es):
    • Date
    • Thread