如何使用任何编程语言制作可执行文件并运行它?
问题描述:
我想知道如何在计算机中创建exe文件以及从c ++或简单c语言制作exe文件的步骤是什么。 ?
I want to know that how to make exe file in computer and what are the steps to make the exe file from the c++ or simple c language. ?
答
问题不太明确。
从C或C ++制作可执行文件源代码,你需要构建它。该过程使用编译器然后链接器:
http://en.wikipedia.org/wiki/Compiler [ ^ ],
http://en.wikipedia.org/wiki/ Linker_%28computing%29 [ ^ ]。
如果你想在C或C ++应用程序的运行期间直接生成一个可执行文件(你真正想要的是从问题中看不清楚),请看我过去的回答:
如何在C#中制作一个简单的EXE生成器 [ ^ ] 。-SA
The question is not quite clear.
To make an executable file from C or C++ source code, you need to build it. The procedure uses compiler and then linker:
http://en.wikipedia.org/wiki/Compiler[^],
http://en.wikipedia.org/wiki/Linker_%28computing%29[^].
If you rather want to generate an executable file directly during runtime of your C or C++ application (what you really want is not clear from the question), please see my past answer:
How to make a simple EXE generator in C#[^].—SA