cc:语言CC未被识别

时间:2017-11-29 20:54:14

标签: c++ c linux gcc

当我将我的应用程序从Solaris C编译器sunstudio / v12 / SUNWspro迁移到Linux C编译器GCC版本4.1.2 20080704时,我发现CC无法识别错误。

C命令:同样的命令在solaris中有效,但在使用Gcc 4.1.2的Linux中无效。

CFLAGS          = -c -g -xCC -I. -I${ORACLE_INCLUDE}

错误:

cc: language CC not recognized
cc: language CC not recognized
cc: check*****maint.c: linker input file unused because linking not done

我们是否需要更改任何参数以与GCC 4.1.2兼容?

1 个答案:

答案 0 :(得分:3)

The -x option selects the input language,因此font.create_glyph_cursor()尝试使用-xCCCC无法知道。对于Solaris gcccc启用了C ++风格的注释,因此您可能必须使用-xCC而不是-std=gnu99(但您的GCC 4.1版本也可能支持默认情况下这样的评论。)

相关问题