trying to compile and link with flex