Hi there,
I'm a newbie in C and I made some functions, but now I wanna use them as libraries.
I create a function corr() in a file corr.c and corr.h and compile that with:
gcc -c corr.c -o corr.o. Now everytime I need to use my function on a program I have to write include the line #include <corr.h> and then type
gcc corr.o myprog.c -o myprog
I want to know if there is any way that I needed to include the line #include <corr.h> in my program and I only had to type:
gcc myprog.c -o myprog
in order to compile?
I apreciate if anyone could send me a link where I can find the info I need or if anyone can explain how do I do that.
Thanks for any help!
Fernando