mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-23 04:35:28 +08:00
Update Linked Library for Linux
Add `-ldl` for `glad` and remove `-lGLEW`.
This commit is contained in:
@@ -99,7 +99,7 @@ CMake是一个工程文件生成工具。用户可以使用预定义好的CMake
|
||||
|
||||
!!! Important
|
||||
|
||||
对于用GCC编译的Linux用户建议使用这个命令行选项`-lGLEW -lglfw3 -lGL -lX11 -lpthread -lXrandr -lXi`。没有正确链接相应的库会产生 *undefined reference* (未定义的引用) 这个错误。
|
||||
对于用GCC编译的Linux用户建议使用这个命令行选项`-lglfw3 -lGL -lX11 -lpthread -lXrandr -lXi -ldl`。没有正确链接相应的库会产生 *undefined reference* (未定义的引用) 这个错误。
|
||||
|
||||
GLFW的安装与配置就到此为止。
|
||||
|
||||
|
Reference in New Issue
Block a user