Andres C wrote:
Hello,
The file win32.dsw generates a fully functional agent after building it (with my extended part of the agent)? What is the difference in running time with win32sdk.dsw? which one is better to use? Because I've been trying to build in win32sdk.dsw and I get some errors with the iphlpapi.h file and I don't know what it is.
Do you have the Microsoft 'Platform SDK' installed? It is needed for win32sdk.dsw. See the 'Installing Platform SDK' section of README.win32.
Also, I've been trying to compile the libsnmp project in win32.dsw and I'm getting some errors. I get:
I just compiled 5.1.2 using the MSVC 6.0 workspace and it compiled fine. Have you tried with a fresh unmodified source? What version of MSVC are you using?
Alex
Compiling...
snmpTCPDomain.c
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(172) : error C2065: 'socklen_t' : undeclared identifier
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(172) : error C2146: syntax error : missing ';' before identifier 'farendlen'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(172) : error C2065: 'farendlen' : undeclared identifier
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(173) : error C2143: syntax error : missing ';' before 'type'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(201) : error C2065: 'string' : undeclared identifier
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(201) : warning C4047: '=' : 'int ' differs in levels of indirection from 'char *'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(203) : warning C4022: 'free' : pointer mismatch for actual parameter 1
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(233) : error C2143: syntax error : missing '{' before '*'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(235) : error C2371: 'netsnmp_tcp_transport' : redefinition; different basic types
..\..\include\net-snmp/library/snmpTCPDomain.h(22) : see declaration of 'netsnmp_tcp_transport'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(372) : warning C4133: 'return' : incompatible types - from 'struct netsnmp_transport_s *' to 'int *'
snmpUDPDomain.c
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(109) : error C2065: 'socklen_t' : undeclared identifier
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(109) : error C2146: syntax error : missing ';' before identifier 'fromlen'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(109) : error C2065: 'fromlen' : undeclared identifier
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(110) : error C2143: syntax error : missing ';' before 'type'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(113) : error C2065: 'from' : undeclared identifier
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(113) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct sockaddr *'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(114) : warning C4047: '==' : 'int ' differs in levels of indirection from 'void *'
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(119) : warning C4022: 'memset' : pointer mismatch for actual parameter 1
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(123) : warning C4047: 'function' : 'struct sockaddr *' differs in levels of indirection from 'int '
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(123) : warning C4024: 'recvfrom' : different types for formal and actual parameter 5
C:\usr\net-snmp-5.1.2.tar\net-snmp-5.1.2\net-snmp-5.1.2\snmplib\snmpUDPDomain.c(130) : warning C4022: 'netsnmp_udp_fmtaddr' : pointer mismatch for actual parameter 2
Error executing cl.exe.
Thanks a lot for your collaboration.
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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