Re: linking static

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 ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008
Dave Shield
 
Posts: n/a
Default Re: linking static

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
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 12:28 PM.


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