This is a discussion on Re: linking static within the SNMP Coders forums, part of the Networking and Network Related category; On 16/01/2008, Carlos Rubio <kadabrachile@gmail.com> wrote: > my link command is: > gcc -o ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 16/01/2008, Carlos Rubio <kadabrachile@gmail.com> wrote:
> my link command is: > gcc -o myapp myapp.o -lsnmp > but it link to the dinamyc library Yes - that's correct. You haven't told the compiler to link things statically, so it will default to linking libraries dynamically. Please read the GCC documentation. In particular, see the flag '-static' 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 |