• 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 behavior for dylibs without the lib prefix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking behavior for dylibs without the lib prefix


  • Subject: Re: Linking behavior for dylibs without the lib prefix
  • From: Andrew Pontious <email@hidden>
  • Date: Wed, 11 Jan 2006 11:59:49 -0800

On Jan 11, 2006, at 10:41 AM, Gabriele de Simone wrote:

There's been lots of (useful) talk on dynamic libraries, but there is one issue I have personally been unable to understand from the docs or from this list.
How is linking against a dynamic library that does not have the canonical "lib" prefix any different than linking against one with the proper name?


So far, I have collected the following info: the library is not linked via the -l<someLibrary> argument, and the full path to the library is passed in.

Does linking work the same even if the library is not specified as part of a -l argument?

Yes.

-l<someLibrary> vs. full path is just about *finding* the library.

And if the dylib is not linked via the -l argument, does the "Library Search Paths" build setting (-L) still have any effect?

Nope.

"Full path" means just that. We're going to use exactly the one specified in the project.

-- Andrew Pontious

_______________________________________________
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


References: 
 >Linking behavior for dylibs without the lib prefix (From: Gabriele de Simone <email@hidden>)

  • Prev by Date: Re: Linking behavior for dylibs without the lib prefix
  • Next by Date: Re: xcode 2.2 compiles .m file as C++
  • Previous by thread: Re: Linking behavior for dylibs without the lib prefix
  • Next by thread: Crash in std::basic_string
  • Index(es):
    • Date
    • Thread