can anyone help by giving me a webpage where i can find a detailled method of writing a library. thanks in advance
can anyone help by giving me a webpage where i can find a detailled method of writing a library. thanks in advance
Hard to give detailed information when you give so little detail yourself. How about letting us in on your OS and compiler?
Have you thought of google?
If you understand what you're doing, you're not learning anything.
yes but there was nothing special
Typically a library consists of a library module (.lib or .a file) and an associated .h file or group of .h files. There is no substantial difference between writing library code and program code -- a program simply has a main() function where execution starts, and a library does not.
To create the library, you compile the .c files as you would for a normal program, but instead of linking the resulting object files together into an executable, you package them into a library file. The program that does this is called the archiver.
Your library distribution will contain this library archive, along with the .h files and documentation. To use the library, the programmer includes the relevant header files and adds your library archive to the link line.
Any information more specific than that would be platform oriented, and you haven't described what platform you're on.