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.

28335头文件 MemCopy函数声明没有加exter

在28335的头文件DSP2833x_GlobalPrototypes.h里,第182行。 void MemCopy(Uint16 *SourceAddr, Uint16* SourceEndAddr, Uint16* DestAddr); 为什么别的函数声明都加了extern,但MemCopy函数不加extern?

  • 你要搞清楚 extern 是表示 external linkage。这个对于函数是默认的,所以可写可不写,编译器都不会报错。但是对于变量则必须写。

x 出现错误。请重试或与管理员联系。