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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to