Other Parts Discussed in Thread: TMS320F280049
工具/软件:TI C/C++编译器
我们尝试了新编译器、但没有成功。
信息: CCS V10.0.0.00010
编译器: V20.2.0.LTS
MCU: TMS320F280049
代码示例:
typedef int(*testFuncType)(int value);
结构不工作
{
testFuncType Execfunction;
};
int TestFunc (int A)
{
返回 a;
}
int main (空)
{
int b;
struct NotWorking NotWorkingTest;
testFunc 类型工作测试;
NotWorkingTest.Execfunction = TestFunc;
b = NotWorkingTest.Execfunction (5);//(注释此行以成功编译)
WorkingTest = TestFunc;
b =工作测试(5);
返回 b;
}
输出:
C:\\ti\\ccs1000\\ccs\\utils\\bin\\gmake"-k -j 12 all -O
编译文件:"../main.c"
调用:C2000编译器
"c:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000 -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 --include_path="C:/Users/verhoef/workspace_v10/CompilerErrorSegmentation --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include --g --diag_warning=225 --preabi_error=-preproc_driag_abi_main_main.abi_display.abi="-preabi_off"-preabi_main.abi_support=raus.abi_support=raus.abi_us.abi_support=us.abi_overt.abi_us.abi_us.
>>编译失败
subdir_rules.mk:9:目标'main.obj'的配方失败
内部错误:C:\ti\ccs1000\ccs\tools\compiler\ti-cgt-C2000_20.2.0.LTS \bin\ac2000.exe 遇到分段错误
处理函数时(未知或文件范围)文件(未知)行0
这是由 TI C/C++解析器中的缺陷导致的。
TI 客户支持可能会建议解决方法来避免这种情况。
升级到编译器的最新版本可能会解决此问题。
在 E2E 支持论坛中联系 TI、网址 为 http://e2e.ti.com 、位于
"开发工具"、"TI C/C++编译器"。 请参阅标题为的链接
"提交问题"。
我们需要看到整个错误消息以及完整、可重现的消息
包括所有命令行选项的测试用例。
包含由选项--preproc_with_comment 创建的.pp 文件
gmake:***[main.obj]错误1.
gmake:目标"全部"不会由于错误而重新生成。