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

Re: set double


  • Subject: Re: set double
  • From: "Justin C. Walker" <email@hidden>
  • Date: Sun, 22 Oct 2006 09:46:51 -0700


On Oct 22, 2006, at 03:51 , email@hidden wrote:

Hi,

Someone must have seen this before but when using xcode 2.2 to code some C++

[snip]

I would expect it to output 5 twice

like in gcc

I don't have Xcode 2.2 around to check, but a couple of things are worth mentioning. First, your comment above indicates that you think Xcode and gcc are unrelated; in fact, Xcode doesn't do code generation; it relies on gcc. That means the code that generated the two "5.0"s, and the code that generated whatever output you saw that didn't look like what you expected (hint hint) are *both* produced by the same compiler, gcc[1].


Perhaps the best thing to do is see how the faulty test code was generated. Xcode's build window has a panel that shows the commands executed and the output from the commands.

Check that window to see what the compiler was told to do.

Justin

[1] There is a wrinkle here: You may have two or more versions of gcc installed. The command 'gcc_select' will tell you what version is being used when you type 'gcc'. Xcode has settings that let you control, on a pretty fine basis, which version gets used for which files.

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------



_______________________________________________
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: 
 >set double (From: email@hidden)

  • Prev by Date: Re: set double
  • Next by Date: Re: kern.cp_time...
  • Previous by thread: Re: set double
  • Next by thread: Re: set double
  • Index(es):
    • Date
    • Thread