Did a fresh install of Mavericks, installed Xcode, built GMP from source. Tested gcc (which is a link to clang), it works. What doesn't work is linking against libraries:
gmp.h is at /usr/local/include. Any ideas? This worked on Mountain Lion and earlier.
(This isn't limited to gmp, either. Any library in /usr/include or /usr/local/include doesn't work, I haven't tested other locations.)
Code:
$gcc test.c -lgmp
test.c:2:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
^
1 error generated.
gmp.h is at /usr/local/include. Any ideas? This worked on Mountain Lion and earlier.
(This isn't limited to gmp, either. Any library in /usr/include or /usr/local/include doesn't work, I haven't tested other locations.)