[Openvpn-devel] Re: [Openvpn-users] Problem while compiling openvpn

2004-01-27 Thread James Yonan
PremKumar Jayaram  said:

> Hello Everybody,
> 
> I need to compile the opnevpn code on windows 2000. Using Win DDK I was able 
> to compile the driver code, but I am not able to compile the openvpn.c and 
> other files. I tired to compile using VC++ 6.0 but there where few header 
> files under openvpn's "sys" folder which was not defined in VC++.
> 
> In build.w32 file header I saw some instructions of compiling the code using 
> MingW compiler. Is the code supposed to be compiled only with MingW or can I 
> do with VC++ compiler also ?

OpenVPN needs the MinGW compiler to build openvpn.exe on Windows.  There would
probably be some porting work involved to get it to build under VC++.  I've
heard reports that VC++ doesn't like GNU or ISO C99 vararg-style macros, which
OpenVPN depends on heavily.

James




Re: [Openvpn-devel] Re: [Openvpn-users] Problem while compiling openvpn

2004-01-27 Thread Matthias Andree
On Tue, 27 Jan 2004, James Yonan wrote:

> OpenVPN needs the MinGW compiler to build openvpn.exe on Windows.
> There would probably be some porting work involved to get it to build
> under VC++.  I've heard reports that VC++ doesn't like GNU or ISO C99
> vararg-style macros, which OpenVPN depends on heavily.

For at least some of these macros, replacement functions were available
at some point in time. This means it might work, at a performance loss
depending on global optimizer options and quality (read: how good VC++
has become after I'd last used 4.0 years ago, which was a rather
unpleasant experience).

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95