尽管已安装,但在Dev-C ++中找不到Fltk库

时间:2019-09-28 04:43:23

标签: c++ package dev-c++

我正在尝试使用Dev-C++创建一个简单的Fltk应用程序。

我已经安装了从here(bz2版本1.3.5)下载的Fltk软件包,并使用其自己的软件包管理器安装在Dev-C ++中。它安装没有任何错误。

现在,我尝试编译以下简单代码(来自here):

// hello.cxx (example1)

#include <fltk/Window.h>
#include <fltk/Widget.h>
#include <fltk/run.h>
using namespace fltk;

int main(int argc, char **argv) {
  Window *window = new Window(300, 180);
  window->begin();
  Widget *box = new Widget(20, 40, 260, 100, "Hello, World!");
  box->box(UP_BOX);
  box->labelfont(HELVETICA_BOLD_ITALIC);
  box->labelsize(36);
  box->labeltype(SHADOW_LABEL);
  window->end();
  window->show(argc, argv);
  return run();
}

错误窗口中显示的消息为:

3   25  C:\Users\RN\Documents\main.cpp  [Error] fltk/Window.h: No such file or directory
compilation terminated.
28      C:\Users\RN\Documents\Makefile.win  recipe for target 'main.o' failed

问题出在哪里,如何解决?

0 个答案:

没有答案