Hello LV
User can use <#pragma suppress_warnings off> to disable the warning message. And can also use the <#pragma warning off (num [, ...]) > to disable a specific warning message. ( To get to know the warning number, please use the <#pragma showmessagenumber> to display warning messages with their warning numbers.)
However, I do not think this is good solution for this problem of multiply-defination.
The functions 'printf' and 'sprintf' are contained in MSL C library libc_E200z760_VLE_SPFP_Only.a. You should have already included this lib in your project. When user defines the user functions with the same name, linker will prompt such message.
So it is better to rename your user functions to avoid such conflict.
Or you can just ignore this warning, because by default, the the linker always processes source code files before it processes relocatable ( .o ) files or archive ( .a ) files. This policy means that the linker prefers using a symbol definition from a source file rather than a library file definition for the same symbol.
Best Regards
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------