[SOLVED]Using Streamstring and ofstream not working

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

[SOLVED]Using Streamstring and ofstream not working

Post by coolkehon »

I got this error when trying to use stringstream like this;
stringstream sstr = stringstream(stringstream::in);
or like this
stringstream sstr(stringstream::in);

anyone got any suggestions also happesn with ofstream

Code: Select all

c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/bits/ios_base.h&#58; In copy constructor 'std&#58;&#58;basic_ios<char, std&#58;&#58;char_traits<char> >&#58;&#58;basic_ios&#40;const std&#58;&#58;basic_ios<char, std&#58;&#58;char_traits<char> >&&#41;'&#58;
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/bits/ios_base.h&#58;783&#58; error&#58; 'std&#58;&#58;ios_base&#58;&#58;ios_base&#40;const std&#58;&#58;ios_base&&#41;' is private
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd&#58;52&#58; error&#58; within this context
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd&#58; In copy constructor 'std&#58;&#58;basic_stringstream<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&#58;&#58;basic_stringstream&#40;const std&#58;&#58;basic_stringstream<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&&#41;'&#58;
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd&#58;80&#58; note&#58; synthesized method 'std&#58;&#58;basic_ios<char, std&#58;&#58;char_traits<char> >&#58;&#58;basic_ios&#40;const std&#58;&#58;basic_ios<char, std&#58;&#58;char_traits<char> >&&#41;' first required here 
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/streambuf&#58; In copy constructor 'std&#58;&#58;basic_stringbuf<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&#58;&#58;basic_stringbuf&#40;const std&#58;&#58;basic_stringbuf<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&&#41;'&#58;
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/streambuf&#58;775&#58; error&#58; 'std&#58;&#58;basic_streambuf<_CharT, _Traits>&#58;&#58;basic_streambuf&#40;const std&#58;&#58;basic_streambuf<_CharT, _Traits>&&#41; &#91;with _CharT = char, _Traits = std&#58;&#58;char_traits<char>&#93;' is private
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd&#58;68&#58; error&#58; within this context
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd&#58; In copy constructor 'std&#58;&#58;basic_stringstream<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&#58;&#58;basic_stringstream&#40;const std&#58;&#58;basic_stringstream<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&&#41;'&#58;
c&#58;/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd&#58;80&#58; note&#58; synthesized method 'std&#58;&#58;basic_stringbuf<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&#58;&#58;basic_stringbuf&#40;const std&#58;&#58;basic_stringbuf<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&&#41;' first required here 
main.cpp&#58; In function 'int main&#40;int, char**&#41;'&#58;
main.cpp&#58;20&#58; note&#58; synthesized method 'std&#58;&#58;basic_stringstream<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&#58;&#58;basic_stringstream&#40;const std&#58;&#58;basic_stringstream<char, std&#58;&#58;char_traits<char>, std&#58;&#58;allocator<char> >&&#41;' first required here 
make&#58; *** &#91;main.o&#93; Error 1
Last edited by coolkehon on Tue Nov 25, 2008 3:53 am, edited 1 time in total.
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

didnt include fstream but included iostream that fixed it so added fstream to includeds and it worked small error i fogot to do that
Post Reply