Skip navigation.
 
mlRe: Carbon-Cocoa Integration: Linking issue
FROM : Aaron Vegh
DATE : Tue Jan 22 05:23:56 2008

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_removed>> 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

Related mailsAuthorDate
mlCarbon-Cocoa Integration: Linking issue Aaron Vegh Jan 22, 03:48
mlRe: Carbon-Cocoa Integration: Linking issue Kyle Sluder Jan 22, 04:00
mlRe: Carbon-Cocoa Integration: Linking issue Shripada Hebbar Jan 22, 05:09
mlRe: Carbon-Cocoa Integration: Linking issue Aaron Vegh Jan 22, 05:23
mlRe: Carbon-Cocoa Integration: Linking issue Shripada Hebbar Jan 22, 05:40
mlRe: Carbon-Cocoa Integration: Linking issue Aaron Vegh Jan 22, 13:20
mlRe: Carbon-Cocoa Integration: Linking issue Eric Schlegel Jan 22, 18:39
mlRe: Carbon-Cocoa Integration: Linking issue Aaron Vegh Jan 22, 20:48