是二进制可执行文件的便携式 [英] is binary executable file portable

查看:87
本文介绍了是二进制可执行文件的便携式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编译一个C程序我可以把二进制可执行文件,并在另一个系统上运行它那里没有装GCC,比如一个Ubuntu框后?

After compiling a C program can I take the binary executable file, and run it on another system where there is no gcc loaded, such as an Ubuntu box?

推荐答案

部分正确。是的,你不需要编译器本身,而是你需要的C运行时库。总之,无论是C编译器和C运行时POSIX的一部分,所以你不会没有他们找到一个Unix系统。

Partially true. Yes, you don't need the compiler itself, but you need the C runtime library. Anyway, both C compiler and C runtime is part of POSIX, therefore you won't find a Unix system without them.

这篇关于是二进制可执行文件的便携式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆