creating custom widget class DLL in windows

I have a custom widget class that I created in QNX 6.3 and have successfully integrated to PhAB. But now I am trying to do that same to PhAB in windows but I need to recompile and link my code to dll.
I have downloaded the lastest cygwin and gcc.

I have followed the documenations on doing this but got bunch of errors during compilation. Is there a different way of doing this for new cygwin?

gcc -c -nostdinc -I /usr/lib/gcc-lib/i686-pc-cygwin/‘gcc -dumpversion’/include -I$QNX_HOST/usr/include -I/usr/include -I$QNX_TARGET/usr/include MyWidget.c