bad compile error

When building on Linux rh4 SunStudio 12, CC -c test.c -xlang=c99gives warningCC: -xlang=c99 is unavailable on Solaris 6I do not think this is correct for Linux?Message was edited by: Brett_Tiplitz
[245 byte] By [Brett_Tiplitza] at [2007-11-27 0:35:19]
# 1
Isn't -xlang=c99 an option of cc, the C compiler, not CC, the C++ compiler?Paul
pjfloyda at 2007-7-11 22:43:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

> I do not think this is correct for Linux?

Sure thing. The code that checks platform support for C99 has been changed since last express build. Now we just blindly trust Linux in this regard.

It will be available in the upcoming release.

> Isn't -xlang=c99 an option of cc, the C compiler, not CC, the C++ compiler?

Nope. C compiler has -xc99={%all,%none...} option to select C standard language features.

C++ compiler does not yet support C99 fully, yet on Solaris it knows how to link with C99-enabled standard libraries (including libm). -xlang=c99 option sort of allows you to link C++ objects with C99 objects.

On Linux there is no meaning for this option actually, as we just use standard system libraries wherever linker finds them. On Solaris we have much more control over the environment, thus we can go fancy.

regards,

__Fedor.

SFVa at 2007-7-11 22:43:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
I was only looking for options to fix another bug. I was simply pointing out the bad error message.Thanks,Brett
Brett_Tiplitza at 2007-7-11 22:43:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...