As already suggested by Joan Murt
, in order to produce an executable file you have (generally speaking) to:
- Compile the source file. The product of the a succesfull compilation is the corresponding object file
- link the object file with all the necessary libraries. The product of a succesfull linking step is the executable file
The syntax for compiling and linking depends on the compiler or on the IDE (Integrate Development Environment) you are using. Might be simple like
for a very simple application on Linux OS, or more complex.
You should really check the documentation of your development tools.
Executables files don't
compiler for running. That is you may deploy your executable on a target machine lacking of the