The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




Thread: Static
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 02-25-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,771
Hmm. If you compile static images ( -static) the resulting file is huge compared to compiling the default way - dynamically linked.

The only time you would want to compile statically is the case where the libraries your code needs will not exist on the machine the code needs to run on. Static linking 'parks' the library modules in your exe. Making it very large.