Fltk1.1与MinGw?
我有一个在 Linux 中编译的项目,现在我尝试在 Windows 7 中的 MinGw 下编译它。该项目包含 fltk 库。当我尝试编译时,我收到一条消息,指出未找到 FL/Fl.h 文件 -
GUIWindow.h:5:18: fatal error: FL/Fl.H: No such file or directory
compilation terminated
我下载了 fltk 1.1 文件并将它们解压到桌面。我进入目录,配置并成功编译文件。那么我在这里缺少什么来安装它呢?我认为使用#include<>,如果库安装正确,无论文件位于何处,它都会找到这些文件。那么 MinGw 下还需要什么呢?任何帮助表示赞赏。
I have a project that compiles in linux and I am now trying to compile it under MinGw in Windows 7. The project includes the fltk library. When I try to compile, I get the message that the FL/Fl.h file is not found -
GUIWindow.h:5:18: fatal error: FL/Fl.H: No such file or directory
compilation terminated
I downloaded the fltk 1.1 files and extracted them to my desktop. I went into the directory, configured, and compiled the files successfully. So what am I missing here to get this to install? I thought that with #include<>, if the library is installed correctly that it will find the files no matter where they are at. So what else is necessary under MinGw? Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我只是从 fltk 文件夹中剪切 FL 文件夹并将其放入 MinGw/include 中。这样就可以编译了。如果有人能解释为什么 #include 在 linux 中有效但在 MinGw 中无效,我将不胜感激。
Okay well I just cut the FL folder from the fltk folder and put it in MinGw/include. This compiles. If anyone can explain why just having #include works in linux but not in MinGw, I would be grateful.