• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to use third-party library in cocoa program?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to use third-party library in cocoa program? (From: "Venture Lee" <email@hidden>)

  • Prev by Date: LSUIElement application and coming to the front
  • Next by Date: Re: Memory Leaks in CocoaEcho Sample
  • Previous by thread: How to use third-party library in cocoa program?
  • Next by thread: LSUIElement application and coming to the front
  • Index(es):
    • Date
    • Thread