RE: Linking Library

This is a discussion on RE: Linking Library within the SNMP Coders forums, part of the Networking and Network Related category; Hello, What did you exactly try? I work with net-snmp 5.4.1, and to link with my own ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-05-2008
Landry Caroline
 
Posts: n/a
Default RE: Linking Library

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: net-snmp-coders-bounces@lists.sourceforge.net [mailto:net-snmp-coders-bounces@lists.sourceforge.net] On Behalf Of ?a?d??a? ?a?a???t??
Sent: lundi 3 mars 2008 22:11
To: net-snmp-coders@lists.sourceforge.net
Cc: net-snmp-coders@lists.sourceforge.net
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0