From: Voisard, C. S C. N. K. <chr...@na...> - 2008-06-12 16:36:17
|
Is there any way to link libfl.a, but turn off the default creation of main() routine (aside from declaring a main() at the bottom of my lexer.l file) ? I am trying to integrate a flex scanner into a pre-existing app that has its own main() . I have looked throughtout the flex online docs, but I have not found any reference for this. I have tried declaring "extern int main(int, char**);" in my lexer.l file, but that doesn't work. Thanks, shane |