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.

[参考译文] CCS/TMS320F28388D:gmake:***[Source/main.obj]错误1.

Guru**** 2039500 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/926772/ccs-tms320f28388d-gmake-source-main-obj-error-1

器件型号:TMS320F28388D

工具/软件:Code Composer Studio

您好!

我正在尝试编译这个非常简单的代码:

typedef 结构{
void (*Print)();
}测试;

void PrintTest(){

测试 t;
int main (空)

T.Print = PrintTest;
T.Print();
返回0;

但我得到这个错误:

说明资源路径位置类型
gmake:***[Source/main.obj]错误1 TBS20C28 C/C++问题
gmake:目标"全部"不会由于错误而重新生成。 TBS2020C28 C/C++问题

如果这可以帮助我解决此问题、这就是我的版本:

****为项目 TBQ20C28构建配置调试****

"C:\\ti\\ccs1000\\ccs\\utils\bin\\gmake"-k -j 8 all -O

编译文件:"../Source/main.c
调用:C2000编译器
"c:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000 /Source/main.c -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 --include_path="C:/Work/TIWorkspace/TBS2020C28 --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include --g --diag_warning=225 --proc/preabi_rebuild=raus_subsection-prob_subs="-preabi_subsection_subs"--out_raus_subsections"--prob_subs"-=raus.abi_preabi_rebuild_subs"--out_subs"--out_preabi_decrand_decuration="-out"-out_rebuild"-out

>>编译失败
source/subdir_rules.mk:9:目标'source/main.obj'的配方失败

内部错误:C:\ti\ccs1000\ccs\tools\compiler\ti-cgt-C2000_20.2.0.LTS \bin\acia2000.exe 遇到分段错误
处理函数时(未知或文件范围)文件(未知)行0

这是由 TI EABI C/C++解析器中的缺陷导致的。
TI 客户支持可能会建议解决方法来避免这种情况。

升级到编译器的最新版本可能会解决此问题。

在 E2E 支持论坛中联系 TI、网址 为 http://e2e.ti.com 、位于
"开发工具"、"TI C/C++编译器"。 请参阅标题为的链接
"提交问题"。

我们需要看到整个错误消息以及完整、可重现的消息
包括所有命令行选项的测试用例。
包含由选项--preproc_with_comment 创建的.pp 文件

gmake:***[Source/main.obj]错误1.
gmake:目标"全部"不会由于错误而重新生成。

****构建完成****