Visual Studio 2015 and wxWidgets 3.0.2

wxWidgets 3.0.2 would not build with Visual Studio 2015. This post provides guidance for solving the problem. Both wxWidgets and Visual Studio have released new versions since this post was written. I have written a new post for building wxWidgets with Visual Studio 2017. And yes, there are changes to the procedure.

As I write this post, wxWidgets 3.0.2 is the latest version. The wxWidgets website provides a download for DLLs that can be used with Visual Studio 2008 – 2013.

Visual Studio 2015 is the first version of Visual Studio to support almost all features of C++11 and C++14. To use wxWidgets with VS 2015, you must build wxWidgets from source code. Downloading the source code for wxWidgets 3.0.2 and attempting to build it with VS 2015 results in a few compile errors as discussed in this forum post. You could apply the mentioned patches to the 3.0.2 source code and rebuild, but a better solution is to clone the master repository on GitHub because these changes as well as a number of new features and bug fixes are included.

Once you have cloned the wxWidgets master repository, go to the directory it was copied to, and open the file build/msw/wx_vc14.sln. Select the configuration you want to build and build it.  There will be a number of warnings generated, but these should not cause any problems.

 

Advertisements

4 thoughts on “Visual Studio 2015 and wxWidgets 3.0.2

  1. Pingback: Visual Studio, wxWidgets, and OpenGL | Using C++

  2. Pingback: Creating wxWidgets Programs with Visual Studio 2015 – Part 1 | Using C++

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