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.

CCS5.5如何使用纯C标准进行编译程序呢?



大家好:

我用的是CCS5.5,现在要编译yaffs文件系统的源文件,但是编译的时候出现malloc报错,需要提供强制类型转换,才能完成malloc出来的指针的赋值。

在C标准下malloc分配出来的内存是不需要强制类型转换的呀,而C++才是有这样的要求的。

我的文件已经是.c后缀的啦,请问怎么在编译配置或者build配置一下,来避开编译器的这个报错呢?

谢谢啦~!

Nern Lai