Homework 2, Compiler Flags and Make.

Short Description:

This assignment is worth 5 points.

Goals

When you finish this homework, you should:

Formal Description

  1. Start a word document.
  2. Make a new folder (directory) for this homework. Do all work in this directory.
  3. Create a file called Makefile
  4. Create the file hw2a.cpp.
  5. In the word document, answer Question 1: What will happen when hw2a.cpp is compiled?"
  6. Compile the code with g++ -o hw2a hw2a.cpp
  7. Make is a utility that will compile code for us based on the configuration file Makefile
  8. When compiling you can receive two or three different types of messages
  9. Compile your program using make
  10. What happens when you run this code?
  11. Create the file hw2b.cpp containing
  12. Three additional make related items.

Required Files

A word document containing the answers to the required questions. In addition, you may add comments, observations, or additional questions to this document.

Submission

Submit your word document to the D2L assignment folder Homework 2 by the due date.