Right, so this is because c99 and VS don't mix. Thanks very much Gert. To explain why I'm trying to do this: Our institution uses OpenVPN to provide remote access (e.g. access to electronic libraries, etc) to its users. So we used to build openvpn and package it very very similarly to the official release (we were using msys and nsis) along with a couple of our conf files. However, domake-win has been removed in 2.3 so I am trying to figure out the best way to do it. What would be ideal would be the thing that tunnelblick does with deployed mode ( http://code.google.com/p/tunnelblick/wiki/cCusDeployed). The admin does not have to build anything, just open the package and drop a deploy folder to the appropriate location. Sadly the windows package does not include something similar, so lots of work need to be done to build a customized package.
BTW, if you are referring to https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem#BuildingnativelyonWindowsusingtheMSVCtoolchainmsvcsubdir I am sorry to say that the info on this page outdated, one has to do quite a few things differently to proceed. The biggest gripe is that the scripts that are mentioned try to download stuff directly from github but github has changed the way it exposes its files. In addition, it tries to download some files from Alon's repo and not from the official openvpn repo. And now that I mention it, I think that the github repo is not synced to the official git so 2.3 is not really available there. Best regards, Athanasios On Wed, Jan 16, 2013 at 12:11 PM, Gert Doering <g...@greenie.muc.de> wrote: > Hi, > > On Tue, Jan 15, 2013 at 09:03:07PM +0200, Athanasios Douitsis wrote: > > Trying to compile 2.3 with visual studio 2010. I am getting the following > > error: > > > > init.c(186): error C2143: syntax error : missing ';' before 'type' > > > [C:\openvpn4\openvpn-build\msvc\build.tmp\openvpn-2.3_master\src\openvpn\openvpn.vcxproj] > > > > (after that there are many many more errors, but you get the idea) > > Oh well, we've done it again... > > if (management) > { > gc = gc_new (); > struct buffer out = alloc_buf_gc (256, &gc); > > ... this is not allowed in visual studio (having a variable declaration > after "non-declaration" code), but gcc doesn't complain, so we usually > don't notice. > > > Which puzzles me, because I thought that OpenVPN can actually be built > with > > visual studio. Is there something I'm missing? > > Visual Studio is a big pain, so we cross-compile using MinGW64 from Linux. > > Samuli has a wiki page somewhere on community.openvpn.net that explains > how to build OpenVPN in a non-maddening way. > > But thanks for the report. I have a Win7 VM that should actually be > able to do a Visual Studio build - I'll try to find time to look at these > issues and send a patch. > > gert > > -- > USENET is *not* the non-clickable part of WWW! > // > www.muc.de/~gert/ > Gert Doering - Munich, Germany > g...@greenie.muc.de > fax: +49-89-35655025 > g...@net.informatik.tu-muenchen.de > -- Athanasios Douitsis