我試圖做在Eclipse CPP發展..LD找不到找不到-luser32(在Eclipse)
我已經安裝cgywin ..當嘗試編譯,鏈接任何簡單Hello World
應用程序,我得到了下面鏈接的同時...
/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
全輸出:
***Build of configuration Debug for project testcpp***
make all
Building target: testcpp.exe
Invoking: Cygwin C++ Linker
g++ -o "testcpp.exe" ./src/testcpp.o
/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
collect2: ld returned 1 exit status
make: *** [testcpp.exe] Error 1
**** Build Finished ****
我認爲ld
需要上述的庫中贏得具體...
我試過find/-name *user32*
,結果是..
.....
/usr/i686-pc-mingw32/sys-root/mingw/lib/libuser32.a
......
這可以幫助?