Re: zero-link vs library
Re: zero-link vs library
- Subject: Re: zero-link vs library
- From: "Timothy J. Wood" <email@hidden>
- Date: Thu, 20 Nov 2003 10:11:12 -0800
If libValidate.a really is a static library, the problem might be
that the only thing that gets linked into your executable is some magic
.o file that does the zero link goo. Since it isn't statically linking
any of YOUR .o files, it doesn't know to pull in symbols from static
libraries.
It might be possible to get around this by added -all_load to your
linker flags for development mode.
Alternatively, you could build your .a as a dylib when you are
building for development and build it as a 'ar' archive for deployment
(yes, having a .a actually be a dylib is a little goofy, but it works
just fine). This is more work to set up than the '-all_load' thing,
but it will produce faster links (which is the whole point of
zero-link...)
-tim
On Thursday, November 20, 2003, at 09:00 AM, George Warner wrote:
On Wed, 19 Nov 2003 17:15:52 -0800, Simeon Leifer
<email@hidden> wrote:
I have several projects that use libValidate.a (though the specific
library is not at issue i imagine). When zero-link is enabled, the
application can not see any symbols from the library. Is this a bug,
known or not, and is there any way around it (short of disabling
zero-link which is a great time saver)?
Zero-link depends on files in your build directory to do everything
that it
does. If you move (or copy) your app to a different location then ZL
can't
find those files and fails. The moral of this story is to only use ZL
for
development (from the build directory) and use deployment to build
click-able apps.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientists
Apple Developer Technical Support (DTS)
_______________________________________________
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.
_______________________________________________
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.