Re: snmp_alarm_register, problem: initializer element is not constant
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 10/10/2007, Stefan Wolf <[email protected]> wrote: > I try to use the function snmp_alarm_register as follows: [snip] Yup - that looks reasonable. > When I try to compile it, I get the follwing message: > management_conn.c:40: error: initializer element is not constant > > Where line 40 is the line, where snmp_alarm_register is called. > Can anybody give me a hint, what the problem could be? Hmmm... not sure about this one. Try the following: pingAlarmHandle = snmp_alarm_register( 0, NULL, NULL, NULL ); Does that show the same error? If it doesn't, then try re-instating the various parameters until you identify the offending one. If it does show the same problem, try changing the name of 'pingAlarmHandle' (just in case there's a clash somewhere else). That's all that springs to mind immediately. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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