Problems compiling with Sun

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems compiling with Sun

Enrico Gargiulo
In detail the problem is:
 
 
"/home/enrico/boost/boost_1_33_1/boost/algorithm/string/case_conv.hpp", line 148: Error: Could not find a match for std::string::basic_string(boost::transform_iterator<boost::algorithm::detail::to_upperF<char>, const char*, boost::use_default, boost::use_default>, boost::transform_iterator<boost::algorithm::detail::to_upperF<char>, const char*, boost::use_default, boost::use_default>) needed in boost::algorithm::to_upper_copy<std::string>(const std::string &, const std::locale&).
1 Error(s) and 1 Warning(s) detected.
 
 
I tried with boost 1.33.1 and boost 1.34, with quantlib 0.4.0 and quantlib 0.8.0. The problem is always the same.
 
Thanks
Enrico

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling with Sun

Luigi Ballabio
On Fri, 2007-06-01 at 09:52 +0200, Enrico Gargiulo wrote:
> In detail the problem is:
>  
> "/home/enrico/boost/boost_1_33_1/boost/algorithm/string/case_conv.hpp", line 148: Error: Could not find a match for std::string::basic_string(boost::transform_iterator<boost::algorithm::detail::to_upperF<char>, const char*, boost::use_default, boost::use_default>, boost::transform_iterator<boost::algorithm::detail::to_upperF<char>, const char*, boost::use_default, boost::use_default>) needed in boost::algorithm::to_upper_copy<std::string>(const std::string &, const std::locale&).
> 1 Error(s) and 1 Warning(s) detected.

Strange. It looks like basic_string doesn't have a constructor taking
two iterators (as the Standard says it should.) Since your compiler
seems to be fairly recent, I assume you have the patches listed at
<http://developers.sun.com/sunstudio/downloads/patches/ss11_patches.html>.

Are you using the STL that comes with the Sun compiler? May you try
STLport instead?

Later,
        Luigi


----------------------------------------

Do the right thing. It will gratify some people and astonish the rest.
-- Mark Twain



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Problems compiling with Sun

JamesGan
In reply to this post by Enrico Gargiulo
Hi, Enrico

I met the same error in Niagara platform. Have you been able to successfully compile it now?


Thanks a lot!


<quote author="Enrico Gargiulo">
In detail the problem is:
 
 
"/home/enrico/boost/boost_1_33_1/boost/algorithm/string/case_conv.hpp", line
148: Error: Could not find a match for
std::string::basic_string(boost::transform_iterator<boost::algorithm::detail

</quote>