[AGENT++] errors building snmp console application

Sushma sushma at uh.edu
Mon Jun 21 22:12:04 CEST 2004


Dear Everybody,

Thank you for all the help.
I have been able to build libraries out of libdes and snmp++/src files.
However I did not know how to build them from command prompt so
I created a workspace in Visual Studio for both and build them.

Next step is to work with the console applications.
Again, I did not know how to do it from the command prompt.
So I created another workspace and included the files snmpNext.cpp and included the 2 libraries, snmp_pp.h and checked if the wsock32.lib is included.
Please let me know if whatever I am doing is correct.

I got 8 errors. Please advise.
Regards,
Sushma.

Deleting intermediate files and output files for project 'console_snmpnext_win32 - Win32 Debug'.
--------------------Configuration: console_snmpnext_win32 - Win32 Debug--------------------
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
cl /MTd /W3 /Gm /GX /ZI /Od /I "include" /I "..\libdes" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 
   "C:\msvc6\snmp++\snmp_pp_getnext\snmpNext.cpp"
snmpNext.cpp
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(104) : error C2039: 'socket_startup' : is not a member of 'Snmp'
        d:\oo_snmp\include\snmp_pp.h(105) : see declaration of 'Snmp'
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(104) : error C2065: 'socket_startup' : undeclared identifier
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(260) : error C2039: 'get_ip_version' : is not a member of 'UdpAddress'
        d:\oo_snmp\include\address.h(279) : see declaration of 'UdpAddress'
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(260) : error C2039: 'version_ipv6' : is not a member of 'Address'
        d:\oo_snmp\include\address.h(114) : see declaration of 'Address'
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(260) : error C2065: 'version_ipv6' : undeclared identifier
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(260) : error C2661: 'Snmp::Snmp' : no overloaded function takes 3 parameters
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(380) : error C2039: 'socket_cleanup' : is not a member of 'Snmp'
        d:\oo_snmp\include\snmp_pp.h(105) : see declaration of 'Snmp'
c:\msvc6\snmp++\snmp_pp_getnext\snmpnext.cpp(380) : error C2065: 'socket_cleanup' : undeclared identifier
Error executing cl.exe.
snmpNext.exe - 8 error(s), 0 warning(s)




More information about the AGENTPP mailing list