Re: Linking problem
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.