Question: Building C + + Programs For this section consider the following files: Q 2 . It is desired combine the code in the above files

Building C++ Programs
For this section consider the following files:
Q2. It is desired combine the code in the above files into a static library (or "archive").
(a) Which files need to be compiled?
(b) Give the C++ compiler command which converts the source file to an object
file.
(c) State the dependencies of each cxx file.
(d) Using make syntax, write down the dependencies and action which will result
in the production of libfile1.o.
(e) libfile1.h contains only the prototype of the byn function. Why is it included
by libfile1.cxx where the function is defined?
(f) Describe a process by which header-file dependencies can be generated auto-
matically as compilation progresses. You do not need to give specific commands
to achieve each step you describe.Building C++ Programs
For this section consider the following files:
Q2. It is desired combine the code in the above files into a static library (or "archive").
(a) Which files need to be compiled?
(b) Give the C++ compiler command which converts the source file to an object
file.
(c) State the dependencies of each cxx file.
(d) Using make syntax, write down the dependencies and action which will result
in the production of libfile1.o.
(e) libfile1.h contains only the prototype of the byn function. Why is it included
by libfile1.cxx where the function is defined?
(f) Describe a process by which header-file dependencies can be generated auto-
matically as compilation progresses. You do not need to give specific commands
to achieve each step you describe.
Building C + + Programs For this section consider

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!