Audacity 2.3.3 compilation failure - W10 v1909 x64 - MSVS 2017; audacity.h can't open configwin.h


subject: Audacity 2.3.3 compilation failure - W10 v1909 x64 - MSVS 2017; can’t open configwin.h

MSVS 2017 reported build error details:

…[my audacity folder]…\src\audacity.h(145): fatal error C1083: Cannot open include file: ‘configwin.h’: No such file or directory
Done building project “Audacity.vcxproj” – FAILED.

my host platform:

Windows 10 Home version 1909 on Intel 64bit

my Audacity 2.3.3 build process:

Used instructions at>
except widgets, I used github’s: wxMSW-3.1.1-Setup.exe and .sln input to MSVS 2017

my software development assets:

MSVS 2017 (and unused alternate MSVS 2019)
MS Visual C++ 2015-2019 Redistributable (x64 and x86)
SDKs 10.0.17763.0 (and unused alternate 10.0.18362.0)
Git and Git Extensions
wxMSW-3.1.1-Setup.exe → C:\wxWidgets-3.1.1
C:\wxWidgets-3.1.1\build\msw\wx_vc15.sln ← input to MSVS 2017
built all 4 libs (32 & 64, lib & dll)
wxMSW-3.1.3-Setup.exe → C:\wxWidgets-3.1.3
C:\wxWidgets-3.1.3\build\msw\wx_vc16.sln ← input to MSVS 2019
built all 4 libs (32 & 64, lib & dll)

my Audacity source download:

Clone Audacity from the Audacity GitHub project. (version 2.3.3)

MSVS 2017 build process:

set system environment variable: $(WXWIN) C:\wxWidgets-3.1.1

audacity\win\audacity.sln ← MSVS 2017 solution file
Project Properties>
Configuration: Active(Release) Platform: Active(Win32)
Windows SDK Version: 10.0.17763.0
Platform Toolset: Visual Studio 2017 (v141)
Additional Include Directories: $(WXWIN)\include\msvc

Preprocessor Definitions BUILDING_AUDACITY (definitions set by .sln ?)
Inherited values: _UNICODE

Additional Library Directories: $(OutDir)

Configuration Manager:
Active Solution configuration: Release
Active Solution Platform: Win32
(default selection of projects - all except:“help”, “mod-null”, “mod-nyq-bench”)

I’m not sure when the wiki instructions were last updated. It may be worth checking if your steps match with these instructions:

First, thanks for responding quickly.
I have read the web page you cited in your response.
It is the exact same page arrived at by the link I cited, (see the 22 April, 2020 posting date at the bottom of the page).
The text body of the instructions on the page are identical to those at
The instructions are also identical to those within the audacity source code’s “README.txt”.

I think my procedure is per instructions.
I think my wxWidgets (built error free with MSVS 2017), SDK or MSVS are good installations.

I am guessing that since audacity.h line 145 can’t find configwin.h…
#ifdef WXMSW
#include “configwin.h” <— line 145
…there is a some obscure order of preprocessor #define, #undef, #ifdef, etc. and some consequent compilation order dependency.

I listed the MSVS configuration preprocessor definitions.
I am new to MSVS so is my guess the definitions were populated from audacity.sln.
Might there be additional necessary definitions?

Do you have access to a W10 platform configured with wxWidgets3.1.1, 2017 SDK and MSVS?

thanks again