Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Linking a Cocoa Framework with a C++ dynamic library

 
   Mac (Home) -> Programmer Help RSS
Next:  How to always get the creator-code of an odoc eve..  
Author Message
Brieuc Desoutter

External


Since: Aug 22, 2005
Posts: 13



(Msg. 1) Posted: Sun Mar 04, 2007 2:46 am
Post subject: Linking a Cocoa Framework with a C++ dynamic library
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi,

I'd like to build a cocoa framework which links with a dynamic c++ library.
To explore the intricacies of this task I wanted to create a very
simple test project.
I started a new xcode project based on the Cocoa Framework template.
I then created a new "BSD dynamic library" target to create my dylib.
I added this target as a build phase in the framework target.

that's for the project setting.

The dylib only contains a Greeter class that display a message in the
standard output.
The framework contains an objective-C++ class that has a Greeter
instance field and simply calls the C++ Greeter class method.

I added visibility pragma in the Greeter.h to export the class interface.

The dylib is correctly build into
<project_dir>/build/<active_build_config> next to the root directory of
the framework.

The build succeeds in Debug build config but fails in Release config
during the link phase because of undefined symbols.

Besides I'd like to copy the dylib inside the framework "product" to
ship it with the framework but I don't know how to do it.

Does anybody knows a clean project configuration ( layout and setting )
to do this or could provides tips to help

thanks in advance.

Brieuc
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Xcode and dynamic linking, willing to pay $$ for good advice - Hello. I am an experienced programmer (www.chc-3.com) but have run into a problem I need help with. I am programming on my new Mac Mini after many years on Wintel. I am using the latest OS X and Xcode versions. I am trying to compile/link a small program...

embedding a framework which depends upon other frameworks - I am trying to build an embed-able framework which depends on a few other frameworks. Ideally I'd like to be able to embed those dependency frameworks into my framework which can then itself be embedded into a destination application. For the life of..

Linking problem - I have a simple static library, and a directory containing a test program (on Mac OS X). The make run is as follows: make libfoo.a cc -W -Wall -O2 -c -o messagebuffer.o messagebuffer.c libtool -static -o libfoo.a messagebuffer.o cd test; make test cc -...

Linking a directory of static libraries - Hello folks, for a project I need to link in a rather large directory of static libraries. My question is, what is the best solution to do this? For now, I manually add -l entries in the "Other Linker Flags" field in the build options, but thi...

Hyperlinks in cocoa - I have an NSTextField and I want to put a link in it so when I click it, it opens the link in the default browser. I know how to make NSURLs and how to open the default browser (if a button or something is clicked) but I am not sure how I am supposed to...
       Mac (Home) -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact