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
pgpQup_ZQ3jYP.pgp
Description: PGP signature