Not related to your problem, but related to $SUBJECT: make sure to use -P<something> in LFLAGS so your lex-generated symbols don't conflict with those present in applications that use your library, or in other libraries those applications may use. DES -- Dag-Erling Smørgrav - des at des.no