Sh wrote:

ian: thanks for answer
The problem with functions is that  parametr m_nSSTime is of type time_t
I wonder that in declarations there are only long,short and bool
I tried to use (unsigned long)m_nSSTime,but that doesn't help
So,just for experimental purporses I've changed time_t m_nSSTime
to
unsigned long m_nSSTime
in include files.
And this file compiled succesfully,but I suspect some unstable work of a daemon after all this code patches

Me to...


   stack<Level>  stack;

The last line  stack<Level>  stack; produces error:
Error: Redefining std::stack<std::T, std::Container> after use in std::allocator<fontDef> "/export/home/stud11/SUNWspro/prod/include/CC/Cstd/./vector", line 91: Where: While specializing "std::allocator<fontDef>". "/export/home/stud11/SUNWspro/prod/include/CC/Cstd/./vector", line 91: Where: Specialized in std::vector<fontDef>.

Some has done a nasty and put 'using namespace std' in header, or taken advantage of the fact that some (all?) versions of gcc don't complain about the use of standard containers without std::.

So you realy should find and remove the offending using directive and fully qualify the containers (std::stack<Level> stack;).

Anyone who puts 'using namespace std' in a header should be forced to listen to that wretched singing frog for at least 30 days without parole.

Ian
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code

Reply via email to