• 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 statically link library if a dylib exists?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't statically link library if a dylib exists?


  • Subject: Can't statically link library if a dylib exists?
  • From: Larry Campbell <email@hidden>
  • Date: Thu, 30 Oct 2003 09:46:41 -0500

I've written a framework which is an Objective-C wrapper around netsnmp. I've built netsnmp locally as a static library, /usr/local/lib/libnetsnmp.a. I've added this static library to my framework's target, but when I build the framework the static library is not included, and the framework instead references /usr/lib/libnetsnmp.dylib. The only way I've been able to get the static version linked in to my framework is to delete or rename /usr/lib/libnetsnmp*.

First, this seems like a bug. If I add /usr/local/lib/libnetsnmp.a to my target, why is xcode even thinking about pulling in /usr/lib/libnetsnmp.dylib?

And, more importantly, how do I get it to stop?
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Can't statically link library if a dylib exists?
      • From: Larry Campbell <email@hidden>
  • Prev by Date: To all the XCode Developers
  • Next by Date: Re: multiply_defined in XCode
  • Previous by thread: Re: To all the XCode Developers
  • Next by thread: Re: Can't statically link library if a dylib exists?
  • Index(es):
    • Date
    • Thread