Hi, I am trying to create a library file to make some of the functions generic. I need to know how to create it and link it with my source code in C using uvision for c51 & 8051 developments.
As Reinhard says, you cannot compile a Library! A Library contains compiled object code - it is not a 'C' source file! A Library provides an input to the Linker - not to the compiler! Look at the Diagram of the "Software Development Cycle" in Chapter 1 of the uVision-2 Getting Started Guide (p13 in the 02.2001 version).