Linking a program statically?
I'm trying to compile a program and link it statically (so it doesn't depend on any libraries at runtime). I'm fairly sure this is possible with GCC/G++, and the closest option I have found is the -static option. Is this the correct way to link a program statically? Thanks in advance!
- fyhuang [ site ]
Quote:
Original post by fyhuang
Is this the correct way to link a program statically?
To the best of my knowledge, it is.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement