References: <024d01d26459$2589a3d0$709ceb70$@gmail.com> From: Arne Schwabe Message-ID: <5fc27efe-5843-bcb2-4087-3b66f95f229b@...1227...> Date: Mon, 2 Jan 2017 17:39:51 +0100 MIME-Version: 1.0 In-Reply-To: Subject: Re: [Openvpn-devel] Visual Studio support? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Gisle Vanem , openvpn-devel@lists.sourceforge.net Am 02.01.17 um 11:23 schrieb Gisle Vanem: > Fish Wang wrote: > >> I'm finishing up a patch to make sure OpenVPN compiles under Visual Studio. >> I have several questions; > > I'm also compiling using TDM-MinGW and MSVC-2015. But since approx 2 years, > the CL compiler breaks at compiling options.c: > src/openvpn/options.c(7937): fatal error C1026: parser stack overflow, program too complex > > Did you manage to work around that? > > I'm using the latest CL v.19.00.24215.1. I also reported this 2 years ago in: > https://sourceforge.net/p/openvpn/mailman/message/34683175/ > I managed to work around that. By adding a done=true;variable and then splitting the if cascade by else { done=false; } if (!done) in approximately the middle. But without that hack I am not sure if you can get it to compile. Arne