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.

TMS320F28069的CLA编译器不支持<stdlib.h>怎么办?



28069的CLA编译器不支持<stdlib.h>,那如何在CLA中使用结构体和宏呢?官方例程中Clarke、park、pid等底层文件都是使用宏和结构体的,这些怎么放入CLA中运行呢?

  • 你好,CLA不支持的应该是<stdio.h> ?
    <stdlib.h>和<stdio.h> 两个不相同的头文件,stdio是标准输入输出,包含常见的scanf和printf等,而stdlib包含像system等库函数。
  • 谢谢您的帮忙,但是对于<stdlib.h>也是不支持的,在stdlib.h文件中第三第四行正式有效代码即为:
    #if defined(__TMS320C28XX_CLA__)
    #error "Header file <stdlib.h> not supported by CLA compiler"
    编译的时候也会在这里报错的,麻烦您再帮忙看一下,谢谢