This is a discussion on Re: linking static within the SNMP Coders forums, part of the Networking and Network Related category; It's on debian i am use the development packages, and my link command is: gcc -o myapp myapp.o -...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
It's on debian i am use the development packages, and my link command is:
gcc -o myapp myapp.o -lsnmp but it link to the dinamyc library 2008/1/15, Dave Shield <D.T.Shield@liverpool.ac.uk>: > On 10/01/2008, Carlos Rubio <kadabrachile@gmail.com> wrote: > > i am writing a litle app using snmp lib and i want to link it static > > how i do that? > > That will depend on the O/S and compilation environment > that you are using. It's not really specific to the net-snmp > package. See the documentation for your compiler. > > A standard build of the Net-SNMP package would typically > include both dynamic and static libraries (though vendor-supplied > distributions may not always install both). For example, the > Fedora net-snmp-libs RPM just includes the shared libraries, > while the static versions are in the net-snmp-devel RPM. > > Dave > ------------------------------------------------------------------------- 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 |