[format] Compiler error when using the Sun compiler.

Can someone please assist? This code below doesn't compile when I use the Sun compiler. My company is currently using boost 1.33.0, and I cannot do anything about that, but I want to use boost::format. What modification can I make to the format files to fix this issue? Thanks, -Sid Sacek #include <boost/format.hpp> int main( int, char ** ) { boost::format fmt( "test %d %d\n" ); } [[[ The error: ]]] "/data/thirdparty/suncc/32/boost_1_33_0/include/boost/format/alt_sstream_impl.hpp", line 248: Error: Cannot assign void* to char*. Where: While instantiating "boost::io::basic_altstringbuf<char, std::char_traits<char>, std::allocator<char>>::overflow(int)". Where: Instantiated from non-template code. 1 Error(s) detected.

AMDG Sid Sacek wrote:
This code below doesn't compile when I use the Sun compiler. My company is currently using boost 1.33.0, and I cannot do anything about that, but I want to use boost::format. What modification can I make to the format files to fix this issue?
Can you use stlport? In Christ, Steven Watanabe

Steven, I've never used stlport. How would stlport help with the SUN compilation problem I'm having? Am I missing something? I was hoping the implementer of this library knew what the problem was right away and guided me to a quick solution. What is AMDG? -Sid Sacek -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: Wednesday, June 18, 2008 8:39 PM To: boost@lists.boost.org Subject: Re: [boost] [format] Compiler error when using the Sun compiler. AMDG Sid Sacek wrote:
This code below doesn't compile when I use the Sun compiler. My company is currently using boost 1.33.0, and I cannot do anything about that, but I want to use boost::format. What modification can I make to the format files to fix this issue?
Can you use stlport? In Christ, Steven Watanabe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Can someone please assist? This code below doesn't compile when I use the Sun compiler. My company is currently using boost 1.33.0, and I cannot do anything about that, but I want to use boost::format. What modification can I make to the format files to fix this issue? Thanks, -Sid Sacek #include <boost/format.hpp> int main( int, char ** ) { boost::format fmt( "test %d %d\n" ); } [[[ The error: ]]] "/data/thirdparty/suncc/32/boost_1_33_0/include/boost/format/alt_sstream_impl.hpp", line 248: Error: Cannot assign void* to char*. Where: While instantiating "boost::io::basic_altstringbuf<char, std::char_traits<char>, std::allocator<char>>::overflow(int)". Where: Instantiated from non-template code. 1 Error(s) detected.

AMDG Sid Sacek wrote:
Steven,
I've never used stlport. How would stlport help with the SUN compilation problem I'm having?
The problem is with the Rogue-Wave standard library. Try adding the switch -library=stlport4.
Am I missing something?
I was hoping the implementer of this library knew what the problem was right away and guided me to a quick solution.
What is AMDG?
Ad Majorem Dei Gloriam. In Christ, Steven Watanabe

Steven Watanabe wrote:
AMDG
Sid Sacek wrote:
Steven,
I've never used stlport. How would stlport help with the SUN compilation problem I'm having?
The problem is with the Rogue-Wave standard library. Try adding the switch -library=stlport4. For lot more info on Sun CC and boost, this blog is probably where you want to go:
http://blogs.sun.com/sga/ -- Bjørn

Steven, Thank you very much, that worked beautifully. Bjørn, Thank you for the heads-up. I will study that web page. -Sid -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: Saturday, June 21, 2008 8:52 PM To: boost@lists.boost.org Subject: Re: [boost] [format] Compiler error when using the Sun compiler. AMDG Sid Sacek wrote:
Steven,
I've never used stlport. How would stlport help with the SUN compilation problem I'm having?
The problem is with the Rogue-Wave standard library. Try adding the switch -library=stlport4.
Am I missing something?
I was hoping the implementer of this library knew what the problem was right away and guided me to a quick solution.
What is AMDG?
Ad Majorem Dei Gloriam. In Christ, Steven Watanabe _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Bjørn Roald
-
Sid Sacek
-
Steven Watanabe