Re: Why can't I do "new uint32_t[ size ]"
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