Stroustrup:对于C ++,如何安装FLTK库? [英] Stroustrup: For C++, how do I install FLTK library?
问题描述
问题:有人可以给我说明如何为Microsoft Visual Studio 2015安装FLTK,以便我可以将FLTK用于C ++吗?
Question: Can someone give me instructions on how to install FLTK for Microsoft Visual Studio 2015, so that I can use FLTK for C++?
其他信息:
在Bjarne Stroustrup的《编程:使用C ++的原理和实践》中的第12章练习中,我需要安装FLTK.
the Chapter 12 drill, in Bjarne Stroustrup's Programming: Principle and Pracice using C++ wants me to install FLTK.
我有Microsoft Visual Studio2015.
I have Microsoft Visual Studio 2015.
我从www.stroustrup.com/Programming/FLTK下载了文件.
I downloaded the files at www.stroustrup.com/Programming/FLTK.
然后,我在C://Program Files(x86)/Microsoft Visual Studio 14.0/VC中打开fltk.dsw.
Then I opened the fltk.dsw in C://Program Files (x86)/Microsoft Visual Studio 14.0/VC.
但是构建失败.
我在该网站上搜索了任何类似的问题;但是最后一个类似的问题是4年前有人在VS2010上寻求帮助.
I searched this website for any similar problems; but the last similar question is a person asking for help with VS2010, 4 years ago.
再次抱歉,伙计们.但是这个问题似乎无法解决,因为这是我第一次在C ++上安装库
I'm sorry again, guys. but this issue seems beyond my grasp because this is my first time installing a library on C++
推荐答案
To install the FLTK to work with the VS 2015, you can follow this article: http://www.c-jump.com/bcc/common/Talk2/Cxx/FltkInstallVC/FltkInstallVC.html
现在,FLTK的最新版本是1.3.3,您可以在这里找到它 http://www .fltk.org/software.php ,然后选择"fltk-1.3.3-source.tar.gz"进行下载.我已经下载了此文件,并按照上述指南文档中的步骤进行操作,终于成功了,并且测试结果与预期的结果相符,如下所示:
Now the latest version of FLTK is 1.3.3 and you can find it from here http://www.fltk.org/software.php and select the ‘fltk-1.3.3-source.tar.gz’ to download. I already downloaded this one and followed the steps in the above guide document, finally it is successful and the test result is matched the expected one as below:
这篇关于Stroustrup:对于C ++,如何安装FLTK库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!