Group 3: Compilation
This group of topics relate to understanding how compilation works in C++.
Understanding the steps to compilation, and the types of errors that appear at each stage of compilation, will make debugging easier as the semester goes on. Additionally, understanding how the code we write gets converted into machine instructions is important for every programming language you use!
Topics
You will know that you have achieved this group of learning objectives when you are able to
- Goal 3A: Compilation Stages:
- Describe the stages of compilation and recognize common errors and their causes at various stages.
- Goal 3B: Compilation Commands:
- Write compilation commands to compile a multifile program
- For the first time
- To recompile it recompile after a change (compiling only the files necessary).
- Write compilation commands to compile a multifile program
- Goal 3C: Program Organization:
- Explain the division of code into header and source files.
- Use
#include
directives to ensure that declarations of variables, classes, functions, etc. are visible.
- Goal 3D: Include Guards:
- Identify the problem that include guards address.
- Implement a valid include guard.
Need More Practice?
This group of goals are addressed in the following places:
- Week 2 Lesson 1 (Goal 3A)
- Week 3 Lesson 1 (Goal 3A, Goal 3B, Goal 3C, Goal 3D)
- Week 4 Lesson 1 (Goal 3C)
- Homework 1 Written Questions (Goal 3A, Goal 3B)
(When logged in, completion status appears here.)