Question: For this section consider the following files: / * libfile 1 . h * / int byn ( int a , int n ) ;
For this section consider the following files:
libfileh
int bynint a int n;
libfileh
int byint a;
libfilecxx
#include "libfileh
int bynint a int n return an;
libfilecxx
#include "libfileh
#include "libfileh
int byint a return byna;
int byint a return byna;
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 automatically 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
