Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] How to link a library?



Hello.

I keep forgetting how to link a library using the Xcode.
Although I looked up the Xcode guide, I couldn't figure out how to.

For example, I drag & drop the libiconv.dylib under MacOS X 10.4u SDK to
the project and the Xcode displays it.
However, when it executes iconv_open(), it crashes. It can't find the
iconv_open() function.
it means that the library is not linked.

Can someone tell me how to link the library? The project type is plain
C++ tool.

I can't find any linker option under Build=>Lining setting for adding
additional libraries.

thank you.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.