yocover / start-learning-opengl

Learn opengl together
MIT License
256 stars 105 forks source link

cannot find -lglada #7

Open EasonLYH opened 9 months ago

EasonLYH commented 9 months ago

PS C:\Users\User\Desktop\c++\openGL> make run g++ -std=c++17 -Wall -Wextra -g -Iinclude -o output\main.exe src/main.o -Llib -lglada -lglfw3dll c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -lglada collect2.exe: error: ld returned 1 exit status Makefile:78: recipe for target 'main.exe' failed make: *** [main.exe] Error 1

c_cpp_properties.json: { "configurations": [ { "name": "Win32", "includePath": [ "C:/MinGW/include/**", "${workspaceFolder}/**" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "compilerPath": "C:\\MinGW\\bin\\g++.exe", "cStandard": "c17", "cppStandard": "gnu++14", "intelliSenseMode": "gcc-x86" } ], "version": 4 }

EasonLYH commented 9 months ago

但是如果在控制台中执行g++ -std=c++17 -Wall -Wextra -g -Iinclude -o output\main.exe src/main.o -Llib -lglad -lglfw3dll不会报错 屏幕截图 2023-12-14 151601