[AGENT++] Compiling SNMP++ v3.2 with BCC

Tay Swee Hong idomain at singnet.com.sg
Mon Jun 8 13:32:21 CEST 2009


Hi,

I'm trying to compile SNMP++ v3.2 with BCC using the supplied Makefile.bcc. There were some errors initially because I susupect the OBJS list is incomplete and USERHEADERS and UXHEADERS are pointed at the wrong place. I made some amendments and managed to get both snmp_pp.lib and snmp_pp.dll in the snmp++\lib folder. I have disabled SNMPv3 support in the config_snmp_pp.h. 

But I could not make the console example with the supplied Makefile.bcc in the consoleExamples folder. Here's what happened when I type "make -f Makefile.bcc":


MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
        bcc32 -P -tWM -DWIN32=1 -DSNMP_PP_NATIVE_EXPORTS=1 -I..\include -c snmpGet.cpp
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
snmpGet.cpp:
Warning W8035 ..\include\snmp_pp/config_snmp_pp.h 207: Threads_defined_but_no_reentrant_LOCALTIME_function
Warning W8035 ..\include\snmp_pp/config_snmp_pp.h 216: Threads_defined_but_no_reentrant_GETHOSTBYADDR_function
Warning W8035 ..\include\snmp_pp/config_snmp_pp.h 225: Threads_defined_but_no_reentrant_GETHOSTBYNAME_function
Warning W8022 ..\include\snmp_pp/gauge.h 144: 'Gauge32::operator =(const Gauge32 &)' hides virtual function 'SnmpUInt32::operator =(const SnmpSyntax &)'
        bcc32 -P -tWM -DWIN32=1 -DSNMP_PP_NATIVE_EXPORTS=1 ..\lib\snmp_pp.lib snmpGet.obj
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
Turbo Incremental Link 5.70 Copyright (c) 1997-2006 Borland
Error: Unresolved external 'SnmpMessage::load(unsigned char *, unsigned long)' referenced from C:\BORLAND STUDIO PROJECTS\SNMP++\LIB\SNMP_PP.LIB|uxsnmp
Error: Unresolved external 'receive_snmp_notification(int, Snmp&, Pdu&, SnmpTarget * *)' referenced from C:\BORLAND STUDIO PROJECTS\SNMP++\LIB\SNMP_PP.LIB|notifyqueue

** error 1 ** deleting snmpGet.exe

Is there something that I omit to do? Your help is most appreciated.

Best / Tay Swee Hong


More information about the AGENTPP mailing list