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 try to create a library (.lib) file and i have wrote my custom versions of putchar and _getkey functions in it. Debugging the library project as executable the linker links my putchar and _getkey functions and everything works great. But wen i use the library file to an other project the linker links the default(keil) version of putchar/_getkey and not my custom versions in the library.
Does everybody knows why is that happening? How can i solve that?
Have you looked at the order you specify your library in comparison to the Keil libraris?
The linker can't automagically know which symbol it should use if you have multiple libraries containing the same symbol name, so you must help it.
Thanks for start
I've just add the library file in the project tree.