Calling C++ library and/or framework from Obj C
Calling C++ library and/or framework from Obj C
- Subject: Calling C++ library and/or framework from Obj C
- From: Louis Sinclair <email@hidden>
- Date: Sun, 18 May 2003 17:29:22 -0500
- Organization: Minnetonka Software, Inc.
Hello,
I'm working on a project using Cocoa/ObjC for the UI that is
to call a library written in C++ created with CodeWarrior 8.
We're having trouble linking with the library. We've tried
several combinations of project types, but have had only
partial success.
The closest we've come is to create a C++ OSX framework with
CW, and the UI using ObjC and Project Builder. We were able
to access our framework from the Cocoa project, but were
unable to use the CW debugger to step through the framework.
Also, we've been using another library (LibSndFile) that has
to be accessed from the framework. When we include the
pre-built library into the framework project, the build fails
with an incomplete error message consisting of simply the name
of the library minus the first character.
It is important that the library/framework source files are
cross platform, and most of them already exist as C++ code,
which is why we're using C++. We don't really care whether
we use CW, PB, or both as long as we can get the modules to
talk to each other, as well as have an effective development
and debugging environment.
I guess the main question is what types of code can co-exist
in a project like this, and where does documentation exist
that explains any limitations and the proper procedures for
accessing code in other modules?
I suspect similar questions have been asked and answered
here already, but I'm unable to find complete information
by searching this list or in the Apple docs. This is
probably due to my own searching skills rather than a lack
of relevant information out there :)
Thanks in advance!
--
Louis Sinclair
Minnetonka Audio Software, Inc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.