• 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: Carbon-Cocoa Integration: Linking issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Carbon-Cocoa Integration: Linking issue
      • From: Shripada Hebbar <email@hidden>
References: 
 >Re: Carbon-Cocoa Integration: Linking issue (From: Shripada Hebbar <email@hidden>)

  • Prev by Date: Re: Carbon-Cocoa Integration: Linking issue
  • Next by Date: Re: AW: leopard: No universal libjpeg.dylib in 10.4SDK?
  • Previous by thread: Re: Carbon-Cocoa Integration: Linking issue
  • Next by thread: Re: Carbon-Cocoa Integration: Linking issue
  • Index(es):
    • Date
    • Thread