Re: [reSIProcate-users] FW: (no subject)
Just an FYI: when compiling ipv6 related code on windows in some versions of
Visual Studio, NTDDI_VERSION also needed to be defined. I normally setup
the windows defines like this for supporting at least Win2k SP1 (Win2k SP1 :
#if (_MSC_VER >= 1500)
#define _WIN32_WINNT _WIN32_WINNT_WIN2K
#define NTDDI_VERSION NTDDI_WIN2KSP1
#else
#define _WIN32_WINNT 0x0500
#define WINVER 0x0500
#endif
#include <winsock2.h> //include before windows.h
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
When you install the Windows SDK alongside visual studio < 1500, maybe this
also requires setting the NTDDI_VERSION to at least NTDDI_WIN2KSP1.
Also, I have not tried running ipv6 enabled code on Win2k SP1, and Microsoft
states that it is technically not supported
http://www.microsoft.com/technet/network/ipv6/ipv6faq.mspx. It may be a
good idea to only enable ipv6 for XP SP1 and higher.
Regards,
-justin
-----Original Message-----
From: resiprocate-users-bounces@xxxxxxxxxxxxxxx
[mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of Gabriel Hege
Sent: Wednesday, November 12, 2008 5:25 PM
Cc: resiprocate-users@xxxxxxxxxxxxxxx
Subject: Re: [reSIProcate-users] FW: (no subject)
From the look of your compiler messages I am assuming you are using
Visual Studio...
I had the same problem before, when using the header files from the MS
Windows SDK. I simply solved it by removing the Windows SDK from my
include path. If you don't need IPv6 support you can probably also just
remove the USE_IPV6 preprocessor definition from the project settings.
Setting the _WIN32_WINNT constant to 0x0501 as described here
http://msdn.microsoft.com/en-us/library/aa383745(VS.85).aspx did not
solve the problem for me. This constant controls whether IPPROTO_IPV6 is
being set in ws2def.h. I don't know why it didn't work, but I also
didn't put too much effort into finding out...
best regards,
gabriel hege
Marshall Jobe wrote:
> I was using */a resiprocate version /*from a sample GIPS softphone
demo.*//*
>
> I just got the newest version */of resiprocate /*via svn and am trying
> to compile it.
>
> I'm getting the following errors.
>
> How do I fix this?
>
>
>
>
>
> DnsInterface.cxx
>
> DnsResult.cxx
>
> .\DnsResult.cxx(956) : error C2039: 'v6Address' : is not a member of
> 'resip::DnsAAAARecord'
>
>
> c:\cygwin\home\mjobe\svn\resiprocate\rutil/dns/DnsAAAARecord.hxx(19) :
> see declaration of 'resip::DnsAAAARecord'
>
> DtlsMessage.cxx
>
> Generating Code...
>
> Compiling...
>
>
>
> and
>
>
>
> TransportFailure.cxx
>
> TransportSelector.cxx
>
> .\TransportSelector.cxx(77) : error C2039: 'v6Address' : is not a member
> of 'resip::GenericIPAddress'
>
>
> c:\cygwin\home\mjobe\svn\resiprocate\rutil/GenericIPAddress.hxx(23) :
> see declaration of 'resip::GenericIPAddress'
>
> .\TransportSelector.cxx(78) : error C2039: 'v6Address' : is not a member
> of 'resip::GenericIPAddress'
>
>
> c:\cygwin\home\mjobe\svn\resiprocate\rutil/GenericIPAddress.hxx(23) :
> see declaration of 'resip::GenericIPAddress'
>
> .\TransportSelector.cxx(78) : error C2228: left of '.sin6_family' must
> have class/struct/union
>
> TuIM.cxx
>
> Tuple.cxx
>
> .\Tuple.cxx(85) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(85) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(85) : error C2070: ''unknown-type'': illegal sizeof operand
>
> .\Tuple.cxx(86) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(86) : error C2228: left of '.sin6_family' must have
> class/struct/union
>
> type is ''unknown-type''
>
> .\Tuple.cxx(87) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(87) : error C2228: left of '.sin6_port' must have
> class/struct/union
>
> type is ''unknown-type''
>
> .\Tuple.cxx(90) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(90) : error C2228: left of '.sin6_addr' must have
> class/struct/union
>
> type is ''unknown-type''
>
> .\Tuple.cxx(94) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(94) : error C2228: left of '.sin6_addr' must have
> class/struct/union
>
> type is ''unknown-type''
>
> .\Tuple.cxx(123) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(123) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(123) : error C2070: ''unknown-type'': illegal sizeof operand
>
> .\Tuple.cxx(124) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(124) : error C2228: left of '.sin6_addr' must have
> class/struct/union
>
> type is ''unknown-type''
>
> .\Tuple.cxx(125) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(125) : error C2228: left of '.sin6_family' must have
> class/struct/union
>
> type is ''unknown-type''
>
> .\Tuple.cxx(126) : error C2065: 'm_anonv6' : undeclared identifier
>
> .\Tuple.cxx(126) : error C2228: left of '.sin6_port' must have
> class/struct/union
>
> type is ''unknown-type''
>
> .\Tuple.cxx(154) : error C2511: 'resip::Tuple::Tuple(const in6_addr
> &,int,resip::TransportType,const resip::Data &)' : overloaded member
> function not found in 'resip::Tuple'
>
> c:\cygwin\home\mjobe\svn\resiprocate\resip/stack/Tuple.hxx(43) :
> see declaration of 'resip::Tuple'
>
> .\Tuple.cxx(965) : fatal error C1004: unexpected end-of-file found
>
> TupleMarkManager.cxx
>
> TuSelector.cxx
>
> UdpTransport.cxx
>
>
> [...]
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/