WanderingCoder wrote:
I tried running "clang -std=c11" in the terminal, but clang returns "error: no input files" (I guess it's a compile-time command).
Yes. It needs a source file.
I see no option under C dialects in Xcode for -std=c11 or -std=gnu11 (although all the others - c89, c99, ansi) are there.
I seem to have it:
It seems to work well enough. Supposedly this is using a C11 construct:
#include <stdio.h>
int main(int argc, const char * argv[])
{
struct T { int tag; union { float x; int n; }; };
// insert code here...
printf("Hello, World! %ld\n", __STDC_VERSION__);
return 0;
}
The output says it is C11:
Hello, World! 201112
And I know Unix isn't partnered with GNU or anything, but the GNU manifesto states that a GNU programmer should always focus on coding with Unix compatibility in mind.
They do have a bunch of manifestos over there don't they?
It looks like <threads.h> might be the only thing missing from the current 4.6.3 version of Xcode: http://clang.llvm.org/cxx_status.html
Perhaps it is available in Xcode5. I don't think you are getting much with that. GCD is infinitely better.