user3658145
user3658145

Reputation: 23

cc: language CC not recognized

When I'm migrating my app from Solaris C compiler sunstudio/v12/SUNWspro to Linux C compiler GCC version 4.1.2 20080704, I'm seeing a CC not recognized error.

C Command: The same command is working in solaris but not working in Linux with Gcc 4.1.2.

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

Error:

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

Do we need to change any parameters to be compatible with GCC 4.1.2 ?

Upvotes: 1

Views: 2864

Answers (1)

Florian Weimer
Florian Weimer

Reputation: 33717

The -x option selects the input language, so -xCC attempts to use CC, which is not known to gcc. With Solaris cc, -xCC enables C++-style comments, so you may have to use -std=gnu99 instead of -xCC (but it is also possible that your build of GCC 4.1 supports such comments by default).

Upvotes: 4

Related Questions