CC compiler with C++ STL

[code]Dear all:

I am using CC compiler to compile a program written in C++ using STL

on the Solaris platform. So far I haven't got it work yet. What is bothering

me is the warning messages which I am not sure the cause of the

problem or not. I would appreciate if any of the people here can provide some guidance.

Lu

Warning messages followed:

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ios", line 148: Warning: std::basic_ios<char, std::char_traits><char>>::copyfmt hides the function std::ios_base::copyfmt(const std::ios_base&).

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 73:Where: While specializing "std::basic_ios<char, std::char_traits><char>>".

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 73:Where: Specialized in std::basic_ostream<char, std::char_traits><char>>.

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 363:Where: Specialized in non-template code.

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ios", line 148: Warning: std::basic_ios<wchar_t, std::char_traits><wchar_t>>::copyfmt hides the function std::ios_base::copyfmt(const std::ios_base&).

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 73:Where: While specializing "std::basic_ios<wchar_t, std::char_traits><wchar_t>>".

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 73:Where: Specialized in std::basic_ostream<wchar_t, std::char_traits><wchar_t>>.

"/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 366:Where: Specialized in non-template code.[/code]

[1651 byte] By [xuehua] at [2007-11-26 9:02:43]
# 1

You can ignore these warnings. They do not represent an actual problem. In later compilers we suppress the warnings.

WS6u2 is obsolete and End Of Life. You should use a current compiler, unless you need to run on a version of Solaris older than Solaris 8. The current release, Sun Studio 11, is free. You can download it here:

http://developers.sun.com/sunstudio/

clamage45 at 2007-7-6 23:10:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
It is a Solaris 8 system. Do you think Studio 11 can work for Solaris 8?
xuehua at 2007-7-6 23:10:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Yes, it is one of Sun Studio 11 target platforms.
MaximKartashev at 2007-7-6 23:10:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

f.y.i

Sun Studio 11 need bash of SUNWbash package for installation and IDE. Solaris 9 and 10 has bash as defaut, but not Solaris 8. The release note of Sun Studio 11 is currently point user to go to sunfreeware.com to get bash. But this version is not SUNWbash and does not work.You need to get it from Soaris 8 Companion CD. We are working on release note to point customer to the right place to get SUNWbash

-Ngoc

NgocNguyen at 2007-7-6 23:10:44 > top of Java-index,Development Tools,Solaris and Linux Development Tools...