Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing C++ class method from ObjC++ code



On 18/11/2007, Shawn Erickson <email@hidden> wrote:
>
> On Nov 18, 2007, at 11:50 AM, Charles Hamel wrote:
>
> > The definition is exactly the same,  I copied/pasted it just to be
> > sure.
> >
> > No namespaces involved.
> >
> > I understand the nature of the error, it really looks like somehow
> > the linker doesn't see the analyze method implementation in
> > Vision.mm, even if it is included in the target.
> >
> > What I don't get is that AppController.mm compiles fine, it even
> > highlights the vision->analyze(...) statement, so it knows it is a
> > valid symbol right ?
> >
> > I have read the Apple doc many time now and I don't get what's
> > missing, is there a way to force the linker with some kind of extern
> > statement in my case ?
>
> You see the Vision.mm file get compiled in the build log? You sure
> some ifdef isn't preventing it from being compiled in?
>
> -Shawn

Sorry to interject (Sunday afternoon and all...)

Have you tried added an #error directive to Vision.mm (that proves
whether it is being compiled or not).

Then add the #error directive just before calling your C++ code.  And
add the #error directive into your C++ code to see if it is getting
compiled.

#error WTF?

Back to Sunday afternoon...

Cheers,
-H.
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Accessing C++ class method from ObjC++ code (From: Scott Ribe <email@hidden>)
 >Re: Accessing C++ class method from ObjC++ code (From: Charles Hamel <email@hidden>)
 >Re: Accessing C++ class method from ObjC++ code (From: "stephen joseph butler" <email@hidden>)
 >Re: Accessing C++ class method from ObjC++ code (From: Charles Hamel <email@hidden>)
 >Re: Accessing C++ class method from ObjC++ code (From: "stephen joseph butler" <email@hidden>)
 >Re: Accessing C++ class method from ObjC++ code (From: Charles Hamel <email@hidden>)
 >Re: Accessing C++ class method from ObjC++ code (From: Shawn Erickson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.