出现错误:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-luser32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-lkernel32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-ladvapi32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-lshell32
解决办法:
http://stackoverflow.com/questions/4272139/gcc-cygwin-compile-error
You may not have the w32api
in the folders.
Go to: C:\cygwin\usr\lib\w32api
and copy all the files into C:\cygwin\usr\lib
andC:\cygwin\lib
That should fix the -luser32
errors.