building net-snmp with vc++ 2008 error (new definition of socklen_t)

Sergiy Michka <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CANyPZc63o=kJ=_GTuTjStGMYiQE0aokXZwU3Bp8WqG82UnVKXw@mail.gmail.com>
Hey,

I've build net-snmp 5.7.3 under win7 and cygwin and now trying to build a
sample with VC++ 2008, but getting this error:

1>c:\usr\include\net-snmp\types.h(81) : error C2371: 'socklen_t':
Neudefinition; unterschiedliche Basistypen
1>        c:\program files\microsoft
sdks\windows\v6.0a\include\ws2tcpip.h(502): Siehe Deklaration von
'socklen_t'

Which means:
* New definition; different base types
* See declaration of "socklen_t"

My sample has only 2 net-snmp includes:
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>

and a reference to netsnmp_session struct and does nothing beyond that.

Thanks,
Sergiy

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.