3 ms·
That gcc error is strange, since I think in the recent versions of OS X gcc is just an aliases for clang. Here's my output of `gcc --version` on OS X 10.10:
by jeffreyrogers 11y ago
That gcc error is strange, since I think in the recent versions of OS X gcc is just an aliases for clang.
Here's my output of `gcc --version` on OS X 10.10:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
edit: also, should've said that's really cool and thanks for posting your source code.
- hthh 11y agoMy GCC seems to be GCC (don't remember why - I guess I installed it for something). I can also make it build using "--std=c99" (but that makes the undefined behavior mentioned in issue #2 show up, which is why I went with clang). gcc: warning: couldn't understand kern.osversion '14.3.0 gcc (GCC) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.