c99 runtime support on solaris/aix



FYI, food for thought re: relying on c99 standard C library semantics:

>From Sun Studio 11 guide:

"Note - Though the compiler support-level defaults to the language features of 
the C99 standard, the standard headers provided by the Solaris 8 and Solaris 9 
operating systems in /usr/include do not conform with the 1999 ISO/IEC C 
standard. If you encounter error messages, try specifying -xc99=none to obtain 
the 1990 ISO/IEC C standard behavior for these headers.

The 1999 C standard library semantics of routines that appeared in both the 1990
 and 1999 C standard are not available and therefore cannot be enabled on 
Solaris 8 and Solaris 9 software. The compiler issues an error message when you 
specify -xc99=lib directly or indirectly on Solaris 8 or Solaris 9 software."

Attempting to enable full c99 compliance with -xc99=all produces this:
$ cc -xc99=all ...
-xc99=lib is not available on SunOS 5.9
$

>From IBM AIX 5.3 Release Notes:

"AIX 5L Version 5.3 system libraries and headers include interfaces required by 
the ISO/IEC 9899:1999(E) (C99) language standard and the Single UNIX 
Specification, Version 3."

This basically says that unless you are running Solaris 10 and IBM AIX 5L 5.3, 
the OS will not have C99 compliant standard C libraries.

Andrew Paprocki
Bloomberg LP






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]