I build a library with m functions, I called n (n<m) functions, How can I avoid the warning:"Uncall function"?
Just one function per object file --- Is it the only solution for this problem?
The uVivion Getting Started Manual says, "When the linker processes a library, only those object modules in the library that are necessary to create the program are used." (my emphasis)
I'm starting to try and use libraries of files. The library contains multiple files of functions. They all compile fine. When I use them in a project, not all funtions are necessarily being used. The linker generates a L16 warning, while not great, it is pretty harmless. Is this an indication that I'm not using the library manager right, or is it normal? I'd like to get rid of the linker warnings if possible. Thanks in advance for any help Andy
This warning is bad news - you need to get rid of it or you'll soon run out of DATA space. You need to make sure that every function in the library resides alone in its own source file to prevent the linker linking in the uncalled functions. It's ok to put additional 'helper' functions in a source file provided that they are *all* called by the exported function and *none* of these 'helper' functions are called by any functions in other source files. Stefan
View all questions in Keil forum