FROM : Charles Hamel
DATE : Sun Nov 18 20:50:40 2007
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 ?
Thank you
Charles
On 18-Nov-07, at 1:43 PM, stephen joseph butler wrote:
> 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.
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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_removed>
>
> This email sent to <email_removed>
DATE : Sun Nov 18 20:50:40 2007
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 ?
Thank you
Charles
On 18-Nov-07, at 1:43 PM, stephen joseph butler wrote:
> 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.
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Charles Hamel | Nov 18, 18:21 | |
| Charles Hamel | Nov 18, 18:22 | |
| Scott Ribe | Nov 18, 18:24 | |
| Charles Hamel | Nov 18, 18:27 | |
| stephen joseph but… | Nov 18, 19:11 | |
| Charles Hamel | Nov 18, 19:31 | |
| stephen joseph but… | Nov 18, 19:43 | |
| Charles Hamel | Nov 18, 20:50 | |
| Shawn Erickson | Nov 18, 21:11 | |
| Herb Petschauer | Nov 18, 21:21 | |
| stephen joseph but… | Nov 18, 21:26 | |
| Jonathan Prescptt | Nov 20, 02:21 |






Cocoa mail archive

