This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0C1106:fputc 重新定义警告

Guru**** 2524550 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1556549/mspm0c1106-fputc-redefine-warning

器件型号:MSPM0C1106


工具/软件:

您好专家

客户需要重新定义 fputc 函数、但编译器报告 如下重新定义问题:


我搜索了 e2e 线程、有一篇文章提到、不应调用 putchar 来避免编译器在 drivelib:https://software-dl.ti.com/msp430/esd/MSPM0-SDK/latest/docs/english/quickstart_guides/doc_guide/doc_guide-srcs/quickstart_guide_keil.html 中编译 fputc 函数

我与客户确认他从不在他的程序中调用 putchar 函数、但在搜索项目时可以找到 putchar 在映射文件中定义:


请您仔细研究一下这个问题。 为什么 fputc 不能由用户重新定义?

谢谢

Joe