• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing C++ class method from ObjC++ code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Accessing C++ class method from ObjC++ code
  • From: "stephen joseph butler" <email@hidden>
  • Date: Sun, 18 Nov 2007 12:43:39 -0600

On Nov 18, 2007 12:31 PM, Charles Hamel <email@hidden> 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.
_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Accessing C++ class method from ObjC++ code
      • From: Charles Hamel <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>)

  • Prev by Date: Re: Accessing C++ class method from ObjC++ code
  • Next by Date: NSFileManager destroying target of symlink at changefileattributes
  • Previous by thread: Re: Accessing C++ class method from ObjC++ code
  • Next by thread: Re: Accessing C++ class method from ObjC++ code
  • Index(es):
    • Date
    • Thread