Boost C++ Libraries: Ticket #10986: Missing std:: qualifier for rand in test_triangular.cpp https://svn.boost.org/trac10/ticket/10986 <p> Compiling libs/numeric/ublas/test/test_triangular.cpp on Solaris 11.2 with Oracle Solaris Studio12.4 compiler with -library=stlport4, we see </p> <p> "../libs/numeric/ublas/test/test_triangular.cpp", line 49: Error: The function "rand" must have a prototype. </p> <p> "../libs/numeric/ublas/test/test_triangular.cpp", line 51: Error: The function "rand" must have a prototype. </p> <p> "../libs/numeric/ublas/test/test_triangular.cpp", line 48: Error: The function "rand" must have a prototype. </p> <p> 3 Error(s) detected. </p> <p> The rand() function needs to be qualified with std::. </p> <p> diff ./test_triangular.cpp ./test_triangular.cpp_orig </p> <p> 3,5d2 &lt; #include &lt;cstdlib&gt; </p> <p> &lt; &lt; 51,52c48,49 &lt; b(i) = std::rand() % 10; &lt; double main = -10 + std::rand() % 20 ; --- </p> <blockquote class="citation"> <blockquote> <p> b(i) = rand() % 10; double main = -10 + rand() % 20 ; </p> </blockquote> </blockquote> <p> 54c51 &lt; double side = -10 + std::rand() % 20 ; --- </p> <blockquote class="citation"> <blockquote> <p> double side = -10 + rand() % 20 ; </p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10986 Trac 1.4.3