We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I have created some functions and I need to create a library for a client. I don't want him to have my source. So how can I create such thing ? Thanks, Oprah,
"you might just give them the one object file. A library is essentially just a collection of a bunch of object files" True. The potential advantage of a true Library is that the Linker may be able to include only those parts that are actually used by the customer's application. I say "potential" because this does rely on you structuring your library properly - see the Manual "...a header so that the linker can find them..." No. Header files have absolutely nothing whatsoever to do with the Linker; they simply provide information to the Compiler. See this thread: http://www.keil.com/forum/docs/thread4887.asp
"...a header so that the linker can find them..." "No. Header files have absolutely nothing whatsoever to do with the Linker; they simply provide information to the Compiler." Try reading a bit more carefully before you shout.
That is not to say that you don't need a header file; just to emphasise that a header file does not tell the Linker anything at all. The header file is required by the Compiler - not the Linker.
"Try reading a bit more carefully before you shout." Oops - now I see it: you mean a Library file contains some header information whereby the Linker can identify the individual components. I was off on a tangent talking about 'C' header files that are usually supplied with Libraries to tell the Compiler about the Library contents. Very sorry - I had the end of the wrong stick. Just like the two old ladies shouting across the street - they could never reach an agreement, because they were arguing from different premises!