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.

【急】求工程师帮忙解释关于错误:#10247-D creating output section "PacketData" without a SECTIONS

我在cfg文件进行了如下配置:

Program.sectMap[".PacketData"] = "DDR3";

在主函数之前写了如下

#pragma DATA_SECTION(imdata0,"PacketData")
char imdata0[IMLength * IMWidth];

为什么编译还是出现如下错误:

#10247-D creating output section "PacketData" without a SECTIONS

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