FLTK 1.1.10 VS2010 Configuration 配置


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 配置)