Closed jadamcrain closed 8 years ago
Oh, it seems glibc hides getopt with -std=c99 because apparently, when in doubt, POSIX features have no place in unistd.h.
Compile with CFLAGS="-D_POSIX_C_SOURCE=2"
. I'll add this to the cmake file.
fc2f3a0 should fix this.
Compiler error is:
Appears to be choking on missing definitions for getopt & optind from.
Not sure if I am missing something or if getopt.h isn't commonly supported.
going through unistd.h, it appears that __USE_POSIX2 isn't defined on my system:
Any ideas?