• 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: Adding a 3rd party C++ library to ObjectiveC project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a 3rd party C++ library to ObjectiveC project


  • Subject: Re: Adding a 3rd party C++ library to ObjectiveC project
  • From: Todd Heberlein <email@hidden>
  • Date: Fri, 07 Jun 2013 12:29:19 -0700

On Jun 7, 2013, at 11:27 AM, Koen van der Drift <email@hidden> wrote:

> Hmm, I cheered too soon. The library (installed in /usr/local/lib) does not show up in that list.  That directory is added to my Framework and Library Search Paths in the Build Settings.  Can I just drag the library into my project instead from that location?

One other possible gotcha is whether it is a static or dynamic library. If it is a dynamic library you have to take some extra steps to embed the library into your app bundle. Otherwise, the app will build and run fine on your development machine, but then fail when you move it to another machine without the library installed.


On Jun 7, 2013, at 11:25 AM, Scott Ribe <email@hidden> wrote:

> FYI, the option to call default constructors of C++ objects embedded in Objective-C objects has been around since 10.3 ;-)

I'm clearly ready for the Coders Retirement Center :), so I'll defer to others on how to get that library into your project.

In an old man's voice: In my day sonny, I used to add the path to the "Build Settings" "Library Search Path" and add -llibname to "Other Linker Flags".


Todd


 _______________________________________________
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

  • Follow-Ups:
    • Re: Adding a 3rd party C++ library to ObjectiveC project
      • From: Koen van der Drift <email@hidden>
References: 
 >Adding a 3rd party C++ library to ObjectiveC project (From: Koen van der Drift <email@hidden>)
 >Re: Adding a 3rd party C++ library to ObjectiveC project (From: Jens Alfke <email@hidden>)
 >Re: Adding a 3rd party C++ library to ObjectiveC project (From: Koen van der Drift <email@hidden>)
 >Re: Adding a 3rd party C++ library to ObjectiveC project (From: Jens Alfke <email@hidden>)
 >Re: Adding a 3rd party C++ library to ObjectiveC project (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Adding a 3rd party C++ library to ObjectiveC project
  • Next by Date: Re: Adding a 3rd party C++ library to ObjectiveC project
  • Previous by thread: Re: Adding a 3rd party C++ library to ObjectiveC project
  • Next by thread: Re: Adding a 3rd party C++ library to ObjectiveC project
  • Index(es):
    • Date
    • Thread