Skip navigation.
 
mlRe: Accessing C++ class method from ObjC++ code
FROM : stephen joseph butler
DATE : Sun Nov 18 19:43:39 2007

On Nov 18, 2007 12:31 PM, Charles Hamel <<email_removed>> wrote:
> Sorry for the confusion


n/p

> Get Info on Vision.mm, then Targets Tab, check the box.


Okay. Are namespaces involved? Are you sure the function signature
matches? If your header is this:

class Vision {
      public: void analyze(NSMutableArray* a);
};

Then your implementation needs to be this:

void Vision::analyze(NSMutableArray* a);

Basically, your error message is telling us something quite simple.
The linker can't find the implementation of the function you declared
in the header. Usually this means one of two things:

1) The implementation file isn't in the target. But it looks like it is.
2) The function signature for the implementation doesn't match the declaration.

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