http://itref.fc2web.com/c/yacc.htmlを参考にしてます

Windows+bison+flexで
test.lに
%{
#include <stdio.h>
%}
%%
hello { printf("Hello World"); }
って書いて、コマンドプロンプトからflex test.lを実行してlex.yy.cが生成されました
そのあとコマンドプロンプトからcc lex.yy.c -o test -lflを実行したら
C:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: c
annot find -lflこれ
collect2: ld returned 1 exit status
ってエラーが出ました。 

アドバイスお願いします