FLTK 1.3.3 VS 2010 Configuration 配置

 

Download FLTK 1.3.3

Download VS2010

 

I assume you've already installed VS2010 correctly.

 

Compile the FLTK:

Go to your FLTK 1.3.3 folder (C:\FLTK\fltk-1.3.3\ide\VisualC2010), open fltk.sln, choose Release mode, right click Solution 'fltk' (79 projects), choose Rebuild.

Wait a long time for make process, have a cup of coffee :)

 

Now, the configuration is done, enjoy it :)

 

Create a new empty project,

 

Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:

C:\FLTK\fltk-1.3.3

 

Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:

C:\FLTK\fltk-1.3.3\lib

 

Project->Project Property->Configuration Properties->Linker->Input:

wsock32.lib
comctl32.lib
fltk.lib
fltkforms.lib
fltk_forms.lib
fltkgl.lib
fltk_gl.lib
fltkimages.lib
fltk_images.lib
fltkjpeg.lib
fltk_jpeg.lib
fltkpng.lib
fltk_png.lib
fltkzlib.lib
fltk_zlib.lib
 

Create a test.cpp file as below:

#define WIN32
#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();

}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值