: When I use the real lex (SunOS 4.1.3) on a machine I have an account on,
: lex.yy.c is made fine, but when I compile lex.yy.c locally, i get
: an error because the yywrap() function isn't defined on my machine.
Hi Chuck,
I had the exact same error.
It turns out that the -ll (to include the lex libraries) needs to
go at the end of the link command line in your make file. When I
moved -ll to the end of the cc line, it suddenly worked.
FYI: I had a similar problem using the curses libraries. Also, at
least with curses on this system, there was a difference between
the man pages and the library's functions. It turns out that
one was bsd and the other was system 5. I had to explicitly point
to the system 5 libraries. To make matters worse, the position of
the -L option (to point to sys5) was important; if put in the
wrong place I still got the other libs.
This sure made things confusing! I suspect there may be differences
between other sys5 and bsd libraries and the devil's in the makefile.
Mark