Re: Carbon-Cocoa Integration: Linking issue
Re: Carbon-Cocoa Integration: Linking issue
- Subject: Re: Carbon-Cocoa Integration: Linking issue
- From: "Aaron Vegh" <email@hidden>
- Date: Mon, 21 Jan 2008 23:23:56 -0500
Thanks for the replies thus far.
My first instinct was to #import the header file, but that had
resulted in much more inscrutable errors -- and moreover, I saw
elsewhere on this list that you were supposed to import implementation
files in these cases. Okay, fair enough...
So here are the "inscrutable" errors, once I import the header file
for MyController:
Undefined symbols:
"_InnoveghtiveFileDestroyer", referenced from:
_InnoveghtiveFileDestroyer$non_lazy_ptr in MyController.o
"_ProcessFile", referenced from:
-[MyController processUserFile:] in MyController.o
ld: symbol(s) not found
The first is referring to an extern NSString that I declare in
MyController.h. It causes no issues when this file is compiled as part
of my regular app build.
Interestingly, the second error is talking about a method call that I
don't even use in the Carbon code. But again, it's properly declared
in the header file, and causes no issues in the main build.
So we're making progress, right? :-)
Cheers,
Aaron.
On Jan 21, 2008 11:09 PM, Shripada Hebbar <email@hidden> wrote:
> Hi Aaron
>
> > Except for the initial call to #include "MyController.m" at the top of
> > the file, what you see here are the only instances of MyController in
> > the file.
> Why are you including the implementation file "MyController.m" ?
> Including this implementation as well as adding the same file to your
> target will sure
> result in multiple symbol definition error!. You should have just
> imported the header
> "MyController.h" instead.
>
> Regards
> Shripada
--
Aaron Vegh, Principal
Innoveghtive Inc.
P: (647) 477-2690
C: (905) 924-1220
www.innoveghtive.com
www.website-in-a-day.com
_______________________________________________
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