Re: Mixing Objective C and C++
Re: Mixing Objective C and C++
- Subject: Re: Mixing Objective C and C++
- From: Ken Tozier <email@hidden>
- Date: Sat, 31 Mar 2007 12:15:32 -0400
On Mar 31, 2007, at 1:26 AM, chinmoy Gavini wrote:
My guess is that you can't call any library functions because they
are in C++(they are in C++, right?).
When compiling a "normal" Quark XTension, the XCode projects needs to
be set up to use the C++ compiler so I assume that's the case.
By the way, could you elaborate on what you mean by "compiled
(only) with the Objective C compiler" -- do you mean keeping the .m
files and not changing their extensions to .mm?
None of my sources or Quark's headers use ".mm" I was only using the
Objective C++ compiler because I thought it would link in the Quark
libraries.
Just a thought: do you have the -bind_at_load (hyphen followed by
bind_at_load) option added to your Objective-C++ project settings'
Other Linker Flags? (if not, see if adding that makes any
difference--the bind_at_load would affect the linking part of the
build process).
Tried your suggestion but I'm still getting the same problem.
One more piece to the puzzle...
Someone on the private Quark developer's forum showed me a trick to
get more information on the failure and it contains the error message
"XTensions module does not contain an initialization routine." In the
context of a plugin, what is an initialization routine? How would I
write one for a Cocoa bundle that is called by Carbon (I think. Don't
really know how Quark loads XTensions) and needs to call C++ library
functions. Is that even possible?
Ken
_______________________________________________
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