Hello, What did you exactly try? I work with net-snmp 5.4.1, and to link with my own library on linux I use the following options for configure:
configure --with-ldflags="-L<library_path>" --with-libs="-lMyLib" Note that in this case you should have a file libMyLib.a in your <library_path>. I hope it can help. Best Regards, Caroline -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?a?d??a? ?a?a???t?? Sent: lundi 3 mars 2008 22:11 To: [email protected] Cc: [email protected] Subject: Linking Library Hello, I want to add some code in a c file of net-snmp-5.2.1. In this code is needed to call a function. This function is included in the library mylib.a How I can compile the net-snmp code linking with mylib.a??? I have tried a lot options of ./configure, like ldflags but it does't work. Also I tried to modify the makefiles but still no results... Any ideas? Thanks. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
