• 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: Why can't I do "new uint32_t[ size ]"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can't I do "new uint32_t[ size ]"


  • Subject: Re: Why can't I do "new uint32_t[ size ]"
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 12 Jul 2011 13:25:59 -0700


On Jul 12, 2011, at 1:00 PM, Per Bull Holmen wrote:

As I explained, the code worked with "new unsigned int[ size ]" but
not "new uint32_t[ size ]". As the pointer was declared as uint32_t *,
and the relevant header files were included, and the compiler
recognized the type uint32_t elsewhere in the same source file, I
couldn't imagine the problem could be anywhere else in my project.
Anyway, it was fixed, and I'm not sure what did it. Perhaps it's
something about the way the clang compiler works that I'm not used to.

You mentioned off-list that this was an instant error message popping up in the margin as you typed, not from an actual build operation. The instant error stuff is a brand-new feature of Xcode 4 and it can be flaky at times (in my experience). Sometimes I get leftover or bogus error markers that I have to close and re-open the file to make go away.

—Jens
 _______________________________________________
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: 
 >Why can't I do "new uint32_t[ size ]" (From: Per Bull Holmen <email@hidden>)
 >Re: Why can't I do "new uint32_t[ size ]" (From: Jens Alfke <email@hidden>)
 >Re: Why can't I do "new uint32_t[ size ]" (From: Mark Wagner <email@hidden>)
 >Re: Why can't I do "new uint32_t[ size ]" (From: Per Bull Holmen <email@hidden>)

  • Prev by Date: Re: Why can't I do "new uint32_t[ size ]"
  • Next by Date: [JOB] Senior Mobile Engineer, New York City - 110-140k
  • Previous by thread: Re: Why can't I do "new uint32_t[ size ]"
  • Next by thread: errors when adding a mac static lib to what originally an iphone project
  • Index(es):
    • Date
    • Thread