Re: How to compile net-snmp with external libs

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/3/23 Jeffrey Cao <[email protected]>:
> In mymibs.c I want to call some APIs provided by another lib, say mylib.a.
> So, where can I include mylib.a into?

   $ ./configure --help | grep libs
     --with-libs=LIBS                use LIBS as link time arguments to ld.


> Another similar question is: if I want put my implement functions in several
> C source file, rather than just one big C file mymibs.c, how can I do this?


  $ configure --with-mib-modules=myMIB1,myMIB2,myMIB3,....

This is done widely within the standard agent.
Have a look at the code there for various approaches.
(Including how to have "--with-mib-modules=myMIB"
  automatically pull in the consituent parts)

Dave

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.