I'm trying to link my C program to both a static and dynamic library to see the difference. How do I do that? I've made my own Makefile:
# ------ executable rule -----------
app : app.o
-gcc -g app.o -o app
# ------ intermeditate object files rule (.o) -------
app.o : main.c
-gcc -g -c main.c -o app.o
I've only shown you some of my Makefile as I think the rest is unnecessary.
I've tried to write -L. lstatic
after -gcc -g app.o -o app
but it didn't work.