Re: -lnetsnmpmibs -lnetsnmpagent - lnetsnmphelpers Not Found

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 25/10/2007, [email protected] <[email protected]> wrote:
> In one of the example Makefiles, it points to libraries that are
> referenced in net-snmp-config labeled NSC_BASE_SUBAGENT_LIBS which is
> assigned the value "-lnetsnmpagent -lnetsnmphelpers - lnetsnmp". So when
> I attempt to build, it can't find these libraries anywhere.

When you compile the main Net-SNMP code, it will create libraries
"libnetsnmpagent", "libnetsnmphelpers" and "libnetsnmp".
These are then installed into the appropriate lib directory
(as part of "make install").

When the C compiler sees an option "-lsomething", it will strip off the "-l"
and replace it with "lib".   It then searches the list of standard library
directories for the file "libsomething".

This is not specific to the Net-SNMP project - it's standard to how
all C compilers work.

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
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.