Visual Studio 2015 Preview Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
crazycoder
In need of some credit
In need of some credit
Posts: 1
Joined: Wed May 16, 2018 8:02 am

Re: Visual Studio 2015 Preview

Post by crazycoder »

Thanks a lot.
This works for me.
doublemax wrote:There are 3 changes you need to make:

1) <wxdir>\src\zlib\gzguts.h - line 102
change:

Code: Select all

#ifdef _MSC_VER
#  define snprintf _snprintf
#endif
to:

Code: Select all

#if (defined(_MSC_VER) && (_MSC_VER < 1900))
  #define snprintf _snprintf
#endif

2) <wxdir>\src\tiff\libtiff\tif_config.h - line 367
change:

Code: Select all

#define snprintf _snprintf
to:

Code: Select all

#if (defined(_MSC_VER) && (_MSC_VER < 1900))
  #define snprintf _snprintf
#endif
3) <wxdir>\include\wx\propgrid\advprops.h - line 453
change:

Code: Select all

wxDateTime GetDateValue() const
{
    //return m_valueDateTime;
    return m_value;
}
to:

Code: Select all

wxDateTime GetDateValue() const
{
    //return m_valueDateTime;
    return m_value.GetDateTime();
}
Line numbers based on wxWidgets 3.0.2 (not latest development version).
Post Reply