Warning: const is a keyword in ANSI C

Posted on Mar 22, 2005

While moving to compiler on Solaris machine if you encounter this warning

warning: const is a keyword in ANSI C

Check you this site

You should be aware that Solaris comes with two compilers,
namely, /opt/SUNWspro/SC4.2/bin/cc and /usr/ucb/cc.
The latter compiler is non-ANSI. Indeed, it is a perverse shell script that
calls the real compiler in non-ANSI mode. In order to compile FFTW,
change your path so that the right cc is used.