Following recommendation from a stack user and instructions within the following stack question:
Lex - How to run / compile a lex program on commandline
I receive the following error after executing lex wordcount.l
and gcc lex.yy.c
-ll on OS X and my console window:
wordcount.l:16:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
main(argc, argv)
Is anyone able to help me resolve this error along with further explanation?
Specifically how would I specify the file such that it is found. Thank you.