On 15/09/2007, Devvrat Tripathi <[EMAIL PROTECTED]> wrote:
> gcc -I. `/usr/local/bin/net-snmp-config --cflags` test1.c -o test1
> /home/devvrat/test1.c:31: undefined reference to `init_snmp'
> collect2: ld returned 1 exit status
:
> make: *** [test1] Error 1
>
> I have checked /usr/local/net-snmp-config --libs and -lnetsnmp is present
But you're not actually *using* these libraries for your compilation.
Try
gcc -I. `/usr/local/bin/net-snmp-config --cflags`
test1.c -o test1 `/usr/local/net-snmp-config --libs`
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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