Q:

How does the compilation/linking process work in c++?

0

How does the compilation/linking process work in c++?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

The compilation of a C++ program involves three steps:

Preprocessing:  The preprocessor takes a C++ source code file and deals with the #includes, #defines and other preprocessor directives. The output of this step is a “pure” C++ file without pre-processor directives.

Compilation: The compiler takes the preprocessor’s output and produces an object file from it.

Linking: The linker takes the object files produced by the compiler and produces either a library or an executable file.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now