Re: LDFlags
Re: LDFlags
- Subject: Re: LDFlags
- From: Brock Brandenberg <email@hidden>
- Date: Tue, 12 Nov 2002 16:42:46 -0600
Hi Nicholas.
>
> Although I've searched for an hour locally and on the web, I can't seem to
>
> find the file or documentation for all of the LDFlags library options like
>
> -lz, -lstdc++, etc. Could someone point me to the right file or docs for a
>
> list of all of these pre-defined options?
>
>
The part after the -l is just the name of a library. See /usr/lib for
>
all the libraries that are included with OS X by default (you want the
>
files ending in '.a' for static and '.dylib' for dynamic libraries).
So the key here is to strip the "lib" prefix from the actual library name
before appending the remaining part of the name to the "-l" option. I was
under the assumption that there were entries in a .cshrc file (or somewhere
else) that were mapping hashed abbreviations to the actual library names.
>
There should be more info in the documentation for Apple's linker.
I would agree, but between the release notes, GNU C/C++/Objective-C Compiler
docs, the mailing lists and an extensive Google search, I didn't find
anything of any substance and gave up. However, thanks to your comment and
now trusting that it was documented somewhere, I just made the connection to
the "ld" static link editor and the man page ("man ld") with the whole
scoop. Hopefully this will help others as lost as I was.
Thanks for the help,
Brock
----- industrial design @ www.bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: LDFlags (From: Nicholas Riley <email@hidden>) |