首页 > 其他 > 详细

FLTK 1.1.10 VS2010 Configuration 配置

时间:2016-01-13 07:03:43      阅读:201      评论:0      收藏:0      [点我收藏+]


Download FLTK 1.1.10 at here.

 

Extract fltk-1.1.10, open folder "vs2005", and then click "fltk.sln",  build solution (F7).

 

When it is done, go to folder "lib", copy all the .lib files except "README.lib" to VS2010 lib folder, for example, mine is "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib"

Copy folder "FL" to VS2010 include folder, for example, mine is "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include"

 

Open VS2010, create an empty project, go to Properties -> Linker -> Input -> Additional Dependencies, copy the following items:

wsock32.lib
comctl32.lib
fltkd.lib
fltkjpegd.lib
fltkimagesd.lib

 

Create a new .cpp file, and try the following test code:

#include "FL/Fl.h"
#include "FL/Fl_Box.h"
#include "FL/Fl_Window.h"

int main()
{

    Fl_Window window(500,500, "Test");

    Fl_Box box(0,0,500,500,"Hello World!");

    window.show();

    return Fl::run();

}

 

FLTK 1.1.10 VS2010 Configuration 配置

原文:http://www.cnblogs.com/grandyang/p/5126116.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!