static libraries
static libraries
- Subject: static libraries
- From: Steve Checkoway <email@hidden>
- Date: Fri, 21 Oct 2005 15:46:13 -0700
I'm trying to link a few static libraries that I've built for a
particular project. I dragged the libraries into my XCode project and
built. XCode didn't use those libraries but passed -llibrary to ld. I
never would have noticed that XCode did not do what I wanted except
that one of the libraries does not exist in the standard library paths.
More concretely, I built libpng.a and dragged that into my project. I
was expecting to see /path/to/libpng12.a as an argument to ld.
Instead, I see -lpng12.
Is there a way to get XCode to do what I told it to do, namely, use
the static library I included in the project, or do I need to pass '-
L/path/to -search_paths_first' to ld? Since this is going though gcc
first, I suppose I'd need to put '-L/path/to -Wl,-search_paths_first'
in the LDFLAGS.
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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