简体   繁体   中英

Eclipse/MinGW won't Link Libraries

I am running Eclipse Oxygen trying to link GLFW to my project. I have 3 library files glfw3.dll , libglfw3.a , and libglfw3dll.a . I have tried with and without the lib prefix, the library path is included, and I have tried with and without the file extension.

Edit: The errors are c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lC:/Users/leobr/Desktop/glfw-3.2.1.bin.WIN64/lib-mingw-w64/glfw3.dll

c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lC:/Users/leobr/Desktop/glfw-3.2.1.bin.WIN64/lib-mingw-w64/libglfw3.a

c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lC:/Users/leobr/Desktop/glfw-3.2.1.bin.WIN64/lib-mingw-w64/libglfw3dll.a

My main problem was that I was using Win32MinGW and win64GLFW. I also had to link dll library instead of the normal one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM