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:
Q 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 libfileo
e libfileh contains only the prototype of the byn function. Why is it included
by libfilecxx where the function is defined?
f Describe a process by which headerfile 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:
Q 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 libfileo
e libfileh contains only the prototype of the byn function. Why is it included
by libfilecxx where the function is defined?
f Describe a process by which headerfile dependencies can be generated auto
matically as compilation progresses. You do not need to give specific commands
to achieve each step you describe.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
