我想建立我的C項目,它使用DLL的方法,但我不能讓它工作。MinGW/Eclipse的C建設問題:找不到dll
我一直有以下錯誤:
**** Internal Builder is used for build ****
gcc -oLibspotifyTest.exe main.o -lC:\Users\nbarraille\workspace\LibspotifyTest\lib\libspotify.dll
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lC:\Users\nbarraille\workspace\LibspotifyTest\lib\libspotify.dll
collect2: ld returned 1 exit status
Build error occurred, build is stopped
Time consumed: 543 ms.
它說,它無法找到我的DLL,但它是在指定的路徑。
我使用Eclipse赫利俄斯與CDT,MinGW的最新版本,在Windows 7
我的項目層次結構如下:
LibspotifyTest
Includes
C:/MinGW/include
C:/MinGW/lib/gcc/mingw32/4.5.2/include
C:/MinGW/lib/gcc/mingw32/4.5.2/include-fixed
LibspotifyTest/include
Debug
include
api.h
lib
libspotify.dll
libspotify.lib
Release
main.o
main.c
我試過,但我有同樣的問題: 「找不到-lC:\用戶\ nbarraille \工作區\ LibspotifyTest \ LIB \ libspotify.lib」 – nbarraille 2011-03-09 12:06:06