If you are trying to use flex and you get the following error:
Undefined symbols for architecture x86_64:
"_yywrap", referenced from:
_yylex in cceJ8DuJ.o
_input in cceJ8DuJ.o
ld: symbol(s) not found for architecture x86_64
You need to link with libfl.a. Apparently, OSX does not have libfl.a. Use libl.a instead.
$ gcc lex.yy.c -o flexout -ll
Or create a symlink
$ cd /usr/lib
$ ln -s libl.a libfl.a