I like to generate LIB file (static library) so I do not need to supply client with source code
Please advise procedure how to do this. Assumed LPC1768 and MCP1700 eval board. What additional statement I need to add the code below?
For example I have simple global variable and function
in source code (test.c)
uINT32 test1; uINT32 test2;
void fuctest1(uCH8 data1, uINT32 data2, CH8*) { test1=2; test2=4; etc }
uINT32 fuctest2(uCH8 data) { test2=10; test1=4; }
in header (test.h)
extern uINT32 test1; extern uINT32 test2;
extern fuctest1(uCH8 data1, uINT32 data2, CH8*); extern uINT32 fuctest2(uCH8 data);
Thanks
First off, you should spend time considring if your source code is so valuable that the customer can't get a copy of it.
Remember that you are putting the customer in a very troubling situation.
1) He can't switch compiler brand. Maybe not even compiler version.
2) If there is a bug found, and you are not available to fix it, he must recreate the functionality of the blirary.
3) If the complete project doesn't work, he can't debug your part, so can't find out if there is an incorrect assumption in your code, or an incorrect assumption in his code about how your code can be used.
Please read the manual!
There is a section in the uVision Manual specifically titled, "Create a Library File"
www.keil.com/.../uv4_ca_createlibraryfile.htm
ARM Librarian: http://www.keil.com/support/man/docs/armutil/armutil_Cjajegba.htm
Rather than invent proprietary type names, why not just use the standard names defined in stdint.h ?
And note the instructions for posting source code: www.danlhenry.com/.../keil_code.png
As Per says, is your client happy for you to withhold the source?