Skip navigation.
 
mlRe: Accessing C++ class method from ObjC++ code
FROM : Shawn Erickson
DATE : Sun Nov 18 21:11:09 2007

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

Related mailsAuthorDate
mlAccessing C++ class method from ObjC++ code Charles Hamel Nov 18, 18:21
mlRe: Accessing C++ class method from ObjC++ code Charles Hamel Nov 18, 18:22
mlRe: Accessing C++ class method from ObjC++ code Scott Ribe Nov 18, 18:24
mlRe: Accessing C++ class method from ObjC++ code Charles Hamel Nov 18, 18:27
mlRe: Accessing C++ class method from ObjC++ code stephen joseph but… Nov 18, 19:11
mlRe: Accessing C++ class method from ObjC++ code Charles Hamel Nov 18, 19:31
mlRe: Accessing C++ class method from ObjC++ code stephen joseph but… Nov 18, 19:43
mlRe: Accessing C++ class method from ObjC++ code Charles Hamel Nov 18, 20:50
mlRe: Accessing C++ class method from ObjC++ code Shawn Erickson Nov 18, 21:11
mlRe: Accessing C++ class method from ObjC++ code Herb Petschauer Nov 18, 21:21
mlRe: Accessing C++ class method from ObjC++ code stephen joseph but… Nov 18, 21:26
mlRe: Accessing C++ class method from ObjC++ code Jonathan Prescptt Nov 20, 02:21