Re: Linker errors resulting from changing a filename
Re: Linker errors resulting from changing a filename
- Subject: Re: Linker errors resulting from changing a filename
- From: Issac Trotts <email@hidden>
- Date: Thu, 2 Apr 2009 20:20:03 -0700
On Thu, Apr 2, 2009 at 7:52 AM, Fritz Anderson <email@hidden> wrote:
> On 2 Apr 2009, at 12:37 AM, Issac Trotts wrote:
>
>> I just tried renaming a pair of files from the command line:
>>
>> Dataset2.h -> Dataset.h
>> Dataset2.m -> Dataset.m
>>
>> Then I removed the old file references within Xcode, and added the new
>> ones. Then I updated #import "Dataset2.h" to #import "Dataset.h"
>> everywhere. The program linked and ran before this change, but after
>> the change it failed to link any functions from Dataset.m.
>>
>> So I reverted the change in git, and then redid the name change inside
>> Xcode. This time it worked. I don't know why.
>
> When you added the files to your project, and the sheet appeared asking what
> to do with them, did you tick the target(s) in which you meant them to be
> linked? A file's presence in a project does not guarantee that it will be
> used for any particular product. It has to be included in a target to do
> that.
Come to think of it, I'm pretty sure I didn't check anything, just
answered okay without pausing to look. Haha, serves me right. Thanks.
Issac
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden