Xプログラムをcygwin環境で、
gcc -o P42 -I/usr/X11R6/include -L/usr/X11R6/lib P42.c
のようにコンパイルしたのですが、

/tmp/ccCDVsKV.o(.text+0x11):P42.c: undefined reference to `XOpenDisplay'
/tmp/ccCDVsKV.o(.text+0x68):P42.c: undefined reference to `XCreateSimpleWindow'
/tmp/ccCDVsKV.o(.text+0x80):P42.c: undefined reference to `XMapWindow'
/tmp/ccCDVsKV.o(.text+0x8f):P42.c: undefined reference to `XFlush'
collect2: ld returned 1 exit status
make: *** [P42] Error 1
ってエラーがでてコンパイルできません。

UNIX環境なら、正常にコンパイルできたのですが…
どなたかご教授お願いします(。´Д⊂)゚