请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
我有一个问题、即我无法在 TI Clang 和 CC26x1处理器中使用_symval。 我希望从链接器文件中获取一个变量、但编译器在使用_symval 时出现问题
警告:函数'_symval '的隐式声明在 C99中无效[-Wimmin-function-declaration]
为什么会发生这种情况? 以前、C2000和 TM4C 系列从不存在问题。
JHi
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.
我有一个问题、即我无法在 TI Clang 和 CC26x1处理器中使用_symval。 我希望从链接器文件中获取一个变量、但编译器在使用_symval 时出现问题
警告:函数'_symval '的隐式声明在 C99中无效[-Wimmin-function-declaration]
为什么会发生这种情况? 以前、C2000和 TM4C 系列从不存在问题。
JHi
感谢您报告此问题。 我可以重现相同的行为。 我提交了条目 EXT_EP-11206 来对此进行调查。 我们欢迎您通过这个链接来了解这一点。
请考虑此解决方法...
#include <stdint.h> /* for uintptr_t */ extern int linker_symbol; #define LINKER_SYMBOL ((uintptr_t)&linker_symbol)
使用 链接器符号 无论您当前身在何处 _symval (linker_symbol) 。
谢谢。此致、
-乔治