hi: I saw "#ifdef TESTING" in the ucdsnmp programme. I thought it uses to debug,so i defined TESTING in config.h .but, When i compiled the programme, gcc reported a error as follow:
/libucdagent.a(agent_registry.o): In function `main': /home/pppjob/test-ucdsnmp/ucdsnmp/agent/agent_registry.c:1254: multiple definition of `main' snmpd.o:/home/pppjob/test-ucdsnmp/ucdsnmp/agent/snmpd.c:273: first defined here /opt/uClinux/arm-elf/bin/gld: Warning: size of symbol `main' changed from 2084 to 972 in agent_registry.o ../snmplib/libsnmp.a(int64.o): In function `main': /home/pppjob/test-ucdsnmp/ucdsnmp/snmplib/int64.c:313: multiple definition of `main' snmpd.o:/home/pppjob/test-ucdsnmp/ucdsnmp/agent/snmpd.c:273: first defined here /opt/uClinux/arm-elf/bin/gld: Warning: size of symbol `main' changed from 972 to 424 in int64.o collect2: ld returned 1 exit status make[2]: *** [snmpd] Error 1 make[1]: *** [subdirs] Error 2 make: *** [all] Error 1 I want to kown what is the purpose of TESTING macro. thank you! cindy ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ 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
