• 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: Xcode project hosed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode project hosed?


  • Subject: Re: Xcode project hosed?
  • From: j o a r <email@hidden>
  • Date: Wed, 1 Feb 2006 08:15:13 +0100


On 1 feb 2006, at 07.29, Scott Squires wrote:

Odd thing now I’m getting a couple of .cp files compiled twice(?) When
linking it’s finding duplicate .o files that were created at the same time
and complains about multiple definitions.
Not quite sure how that would happen.

We've had two problems that might possibly correspond to your observation:


1) There is some sort of bug [1] in Xcode that causes it to sometimes include files multiple times in target build phases. Check your target "Compile Sources" build phase, and remove your duplicates.
This has been observed in our organization (not only for source files), and also reported by other developers on this list a couple of times (check list archives).


2) If you have two different source files with the same name in one target, some versions of Xcode fail to create unique names for the .o files, and will instead overwrite the first files with later files (Note: Source files can come from different directories, and so can have the same name, while all .o files for a target are all placed in one directory). The resulting .o file are still scheduled to be linked in as many times as there were source files, leading to the complaints about multiple definitions.

j o a r


[1] I'm calling it a bug because I don't think that this is what developers want. Perhaps it's not really a bug, it could also be a feature that I don't understand.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Xcode project hosed? (From: Scott Squires <email@hidden>)

  • Prev by Date: Re: Xcode project hosed?
  • Next by Date: The choice of CrossDev SDK
  • Previous by thread: Re: Xcode project hosed?
  • Next by thread: Port from Codewarrior -> Xcode 2.2 crash
  • Index(es):
    • Date
    • Thread