• 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: Linking problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking problem


  • Subject: Re: Linking problem
  • From: James Chen <email@hidden>
  • Date: Wed, 21 Apr 2004 10:21:22 +0800

This happened to me before.
I move NSString definition to implementation (.m) file. and declare it
as a extern symbol in header file.
Just like Cocoa do.

XXX.m
NSString *MyNotification = @"MyNotification";

XXX.h
APPKIT_EXTERN NSString *MyNotification;

HTH,
James
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On Apr 21, 2004, at 3:57 AM, Bjvrn Carlstrvm wrote:

> When I try to build a finnishe application i run into a linking error:
> " multiple definitions of symbol _SCPlanTimeDrag" I have a couple of
> NSStrings defined to be used in different drag operations. Everything
> works when debugging, but not when I try to build. THis is my first
> attempt with XCode so I might have missed something obvious.
>
> Bjvrn Carlstrvm
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Linking problem (From: Björn Carlström <email@hidden>)

  • Prev by Date: Re: Locking from within an enumerator
  • Next by Date: Re: Using POSIX threads with Cocoa?
  • Previous by thread: Linking problem
  • Next by thread: Linking problem
  • Index(es):
    • Date
    • Thread