Other Parts Discussed in Thread: MSP430F5326
您好!
我正在尝试使用 Renesas ZMOD4410为 msp430f5326目标编译代码。 根据 Renesas 的说法、他们使用 mspgcc 编译器来破坏其库、因此我安装了 mspgcc GNU v9.3.1.11、并在 Code Composer Studio 中选择此编译器。
我现在出现错误:未定义对`log10'的引用
您是否有关于库的建议以使用此函数?
此致
好的
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.
Other Parts Discussed in Thread: MSP430F5326
您好!
我正在尝试使用 Renesas ZMOD4410为 msp430f5326目标编译代码。 根据 Renesas 的说法、他们使用 mspgcc 编译器来破坏其库、因此我安装了 mspgcc GNU v9.3.1.11、并在 Code Composer Studio 中选择此编译器。
我现在出现错误:未定义对`log10'的引用
您是否有关于库的建议以使用此函数?
此致
好的
我不确定为什么 CCS 10.3将 libm.a 显示为可能的"运行时支持库"、我尚未检查 CCS 如何填充 CCS General -> Project type and tool-chain -> Runtime support library project 选项上的列表。
链接项目中的 libm
1.将 "Runtime support library"改回
在"CCS Build -> GNU Linker -> Libraries "下、在"Libraries (-l、--library)"列表中添加 m:

您能澄清一下以下哪一种情况:
通过使用 mspgcc GNU v9.3.1.11调用 log10的简单测试程序、如上所述添加 m 库可使程序毫无错误地进行链接。