Re: How to add and compile additional c files into mib module?
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/12/1 <[email protected]>: > 1. I have a MIB file converted to a mib module testAgentModule.c and > testAgentModule.h > > 2. In testAgentModule.c, I want call a function in my own c file called > dataProcess.c > > 3. Where do I add this dataProcess.c file in the Makefile and How do > compile and link it to the testAgentModule? The simplest would be to add a line to the testAgentModule.h file config_require( dataProcess ) [note - no trailing semicolon!] This will then instruct "configure" to add this file to the build environment, when you run configure using '--with-mib-modules=testAgentModule' Dave ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ 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