在写TMS320F28335 CCS工程时引用官方定义typedef char uint8_t,但在实际应用过程中还引用了其他非TI官方函数库,但是该函数库又进行了如下定义typedef char int8。因此在调用此库函数时由于类型定义不一致,编译器报错,该如何解决?
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.
在写TMS320F28335 CCS工程时引用官方定义typedef char uint8_t,但在实际应用过程中还引用了其他非TI官方函数库,但是该函数库又进行了如下定义typedef char int8。因此在调用此库函数时由于类型定义不一致,编译器报错,该如何解决?
uint8这个你前面说的两种typedef都没有这个啊。
这相当一个没定义的类型,所以编译器报错。
这样你就把这个uint8 FunB(void); 改成
uint8_t FunB(void);不可以吗?
你的问题是在这吗?还是有其他问题?