当前位置: 首页 > 工具软件 > lshell > 使用案例 >

cygwin安装gamit错误————cannot find -lshell32

霍浩皛
2023-12-01

出现错误:

/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.


 类似资料: