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.
工具/软件:TI C/C++编译器
以下代码不能使用TI ARM编译器17.3 v.0.STS或TI 5.2 v.8进行编译。 我没有尝试过其他版本。
// test.c int getVal(void){返回0;} int wuld_compiled(void){; int RetVal = getVal();返回0;}#define me_func( funname ) int funname(void){; int Retmk = getVal }();返回0; int me_func(wo_compile) // TI ARM编译器具有以下 源代码/命令:/name/subdir/:编译/失败: 目标'source/test.obj'失败 //"../source/test.c",第9行:警告#994-D:在非void函数"wo_compile "// "../source/test.c"的末尾缺少返回语句,第9行:错误#68:预期a "}"// "./source/test.c",第 9行:错误:错误代码:#171。 应为声明 //"../source/test.c",第9行:错误#171:应为声明 //源末尾:警告#12-D:编译 "../source/test.c"时检测到前面的语法错误// 4个错误后,解析在此处重新启动。 // gmake:***[source/test.obj]错误1.
以下是预处理输出:
int getVal (void){返回0;} int wd_compile (void){; int RetVal = getVal ();返回0;} int wo_compile (void){; int RetVal = getVal ();返回0;}
如果将文件另存为.c文件,则预处理的输出只编译文件。
--谢谢
test.c:
test.pp.c:
请注意,论坛界面不允许我上载".pp"文件,因此我已将其重命名为".pp.c"文件,但除了重命名,该文件与预处理程序创建的文件完全相同。
感谢您通知我们此问题。 我可以复制它。 我在 SDOWP系统中提交了CodeGen-2259,以对此进行调查。 欢迎您使用我签名中下面的SDOWP链接进行关注。
谢谢,此致,
-George