Re: ld: library not found for -lbundle1.o
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 26 Apr 2011, at 21:03, Tilghman Lesher wrote:
You don't want to use the "-l" prefix. Just link it directly into the executable (or library), by using the full path, /usr/lib/bundle1.o. The "-l" prefix implicitly adds a "lib" prefix and a ".dylib" suffix to the name you specify, which means it's looking for a file named "libbundle1.o.dylib", which does not exist.
The Mac OS X linker also supports object files with "-l". It makes it easier to link against the startup object files (crt1.o, bundle1.o, dylib1.o) when using SDKs rather than the system-default ones under /usr. Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe