Re: How to use third-party library in cocoa program?
Re: How to use third-party library in cocoa program?
- Subject: Re: How to use third-party library in cocoa program?
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 22 Oct 2008 12:49:36 -0600
On Oct 22, 2008, at 3:38 AM, Venture Lee wrote:
1. How to use the library in my program?
Just link to it. Mind you, legally, you can only link to the MySQL
libraries directly if your software is free/open source, or if you've
bought a commercial license from the MySQL people. Otherwise, you
should probably use ODBC instead. See MySQL's Web site for details.
2. How to link the library statically? because this program
will be
deployed in other machine no mysql library installed.
You'll have to point the linker directly to the library's path in
Xcode's other linker flags setting. Unfortunately this is necessary
because the linker always prefers dynamic libraries over static ones,
and there is no way to change this.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden