1. Engineering
  2. Computer Science
  3. 1in your ubuntu open course website httpsgithubcomsyracusefullstacksecuritycis342 eg using firefox...

Question: 1in your ubuntu open course website httpsgithubcomsyracusefullstacksecuritycis342 eg using firefox...

Question details

1.In your ubuntu, open course website (https://github.com/syracuse-fullstacksecurity/cis342) (e.g. using Firefox) and hit the green "Clone or download" button to download all the files into a .zip file. Extract the zip file and use the following command to compile `h2.c` as a library: `gcc -c h2.c -o liby.a`. Edit the file named "makefile" and add a new rule about the command. You may use `compilelib` as its label. And then type "make compilelib" to compile `h2.c` as a library. Submit the screenshot.

Attach File

2.We can compile `h1.c` and link it to the library we just created using command `gcc -o a.out h1.c -L. -ly`. Add this command to the makefile with a new rule named `liblink`. What argument do you provide to "make" so that it can link the library liby. Provide a screenshot of making the program.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution