• 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
Re: Linking to a dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking to a dylib


  • Subject: Re: Linking to a dylib
  • From: Randy Croucher <email@hidden>
  • Date: Thu, 6 Nov 2003 16:26:06 -0800

I then get a "Build failed (see build log for details)" message. I can only assume that means to look below at the output pane, and it says "/usr/bin/libtool: can't locate file for: -lB" and "/usr/bin/libtool: file: -lB is not an object file (not allowed in a library)".

I figured out what I needed to do to link to a dylib. The dylib cannot be found unless it starts with "lib". So instead of MyCoolStuff.dylib, it has to be named libMyCoolStuff.dylib or the linker cannot find it.


Only took me about 10 hours of dinking to figure it out. Thought I would post it so maybe I could save someone else the time.

Randy
_______________________________________________
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: Linking to a dylib
      • From: Matthew Formica <email@hidden>
    • Re: Linking to a dylib
      • From: "Ben Kennedy" <email@hidden>
References: 
 >Linking to a dylib (From: Randy Croucher <email@hidden>)

  • Prev by Date: RE: Protocols and Classes
  • Next by Date: Re: Setting for building a private framework into an app?
  • Previous by thread: Linking to a dylib
  • Next by thread: Re: Linking to a dylib
  • Index(es):
    • Date
    • Thread