Setting Fast Light Toolkit (FLTK) library for Bjarne Stroustrup’s exercise in Visual Studio 2010

This time I want to share about how to use Fast Light Toolkit (FLTK) 1.1.10 in Visual Studio 2010 and how to set the Bjarne Stroustrup’s environment for trying the exercise in Chapter 12.

  1. Download FLTK 1.1.10.
  2. Make new project in C++

    Make sure that you choose empty project.

  3. Open the properties window of the current project

  4. In C/C++ -> General, set the Additional Include Directories to your FLTK path

  5. In Linker->General, set the Additional Include Directories to your library folder path. There’re some tutorials about how to compile it on internet, you guys can Google it.

  6. In Linker->Input, set the additional depency with

    “fltkd.lib;wsock32.lib;comctl32.lib;fltkjpegd.lib;fltkimagesd.lib”

    Ignore specific default libraries : “libcd.lib”

  7. Voila, the setting is done, you can use the FLTK library now. But there’s something more you need to do if you want to setting the Stroustrup’s environment.
  8. Download Stroustrup’s codes and add all codes in “GUI” folder into your project.
  9. And now, you can try what is taught in Stroustrup’s book.

May help 🙂

One thought on “Setting Fast Light Toolkit (FLTK) library for Bjarne Stroustrup’s exercise in Visual Studio 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s