Cannot Compile Audacity 2.1.1 in Windows 10

No-one has compiled Audacity on Windows 10 yet, as far as I know.

What version of Visual Studio are you using? Audacity only supports VS2013. If you are using VS2015, I assume the Widgets error you ran into is as described and fixed here: https://forums.wxwidgets.org/viewtopic.php?p=163676#p163676.

I am not a programmer, but if you are using VS2015 I suspect you are running into similar issues compiling Audacity, because older VS did not support snprintf(), and as a result many libraries used the snprintf() function by defining it as _snprintf(). But this will fail in VS2015 given VS2015 defines snprintf().

If this is the problem, see
http://stackoverflow.com/questions/27754492/vs-2015-compiling-cocos2d-x-3-3-error-fatal-error-c1189-error-macro-definiti?answertab=votes#tab-top for explanation. You would have to make similar changes to libsndfile that you made in wxWidgets, so that compilation does not fail on #define snprintf _snprintf.

Try VS 2013 if you are not already doing so, or in VS2015, rather than messing with lots of defines, you could try changing the platform toolset on all projects to Visual Studio 2013 (v120).


Gale