如何在ubuntu上使用code :: blocks正确使用GLFW3? [英] How to correct use GLFW3 with code::blocks on ubuntu?

查看:150
本文介绍了如何在ubuntu上使用code :: blocks正确使用GLFW3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了GLFW源代码.在/usr/local中安装了该库之后,使用sudo make install进行下一次正确的编译,现在当我在代码块中创建项目时,我可以包含GLFW/glfw3.h,但是当我尝试编译时,我会出现错误

I download GLFW source code. Next correct compile with sudo make install, after that library is installed in /usr/local , now when I create project in code blocks I can include GLFW/glfw3.h, but when I try to complie i have errors

如何正确添加此库?

推荐答案

只需单击:

Project -> Build Options

然后添加喜欢的库.当然,widouth -符号.
并且您必须记住同时有Debug Release和Debug Release.因此,您必须输入正确目标的这些库的名称.

And then just add liked libs. Of course widouth - sign.
And you must remember that there are Debug Release and both. So you must enter names of those libs in good target.

这篇关于如何在ubuntu上使用code :: blocks正确使用GLFW3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆