How to statically compile C and C++ projects?
如何静态编译C和C ++项目?
The compiled executable should lead no dynamical library during execution.
在执行期间,编译的可执行文件不应包含任何动态库 。
I use gcc/g++ to compile the projects.
我使用gcc / g ++编译项目。
Check this post: https://www.systutorials.com/5217/how-to-statically-link-c-and-c-programs-on-linux-with-gcc/
检查此帖子: https : //www.systutorials.com/5217/how-to-statically-link-c-and-c-programs-on-linux-with-gcc/
Answered by anonymous.
匿名回答。
翻译自: https://www.systutorials.com/how-to-statically-link-c-and-c-programs/