我知道这个主题很受欢迎但我在其他任何地方都没有找到类似的问题:
我已完成安装和实施的所有步骤,因此我将跳过该部分。
我收到此消息:
1> d:\ microsoft visual studio 11.0 \ vc \ include \ window.h(10):致命错误C1083:无法打开包含文件:'FL / Fl.H':没有这样的文件或目录 ==========构建:0成功,1个失败,0个最新,0个跳过==========
在此代码中:
//
// This is example code from Chapter 12.3 "A first example" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
#include "stdafx.h" // get access to our window library
#include "Simple_window.h" // get access to our graphics library facilities
#include "Graph.h"
int main()
{
using namespace Graph_lib; // our graphics facilities are in Graph_lib
Point tl(100,100); // to become top left corner of window
Simple_window win(tl,600,400,"Canvas"); // make a simple window
Polygon poly; // make a shape (a polygon)
poly.add(Point(300,200)); // add a point
poly.add(Point(350,100)); // add another point
poly.add(Point(400,200)); // add a third point
poly.set_color(Color::red); // adjust properties of poly
win.attach (poly); // connect poly to the window
win.wait_for_button(); // give control to the display engine
}
如何解决?
答案 0 :(得分:0)
通过从
复制解决了上限问题\ Downloads \ fltk-1.3.2-source \ fltk-1.3.2
FL文件夹(如果你之前没有做过std_lib_facilities.h)
\ Microsoft Visual Studio 11.0 \ VC \ include \
完成这一切后,所有事情都会联系在一起。