forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED]Using Streamstring and ofstream not working

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri Nov 21, 2008 8:21 am    Post subject: [SOLVED]Using Streamstring and ofstream not working Reply with quote

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:
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/bits/ios_base.h: In copy constructor 'std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/bits/ios_base.h:783: error: 'std::ios_base::ios_base(const std::ios_base&)' is private
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:52: error: within this context
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd: In copy constructor 'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(const std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:80: note: synthesized method 'std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)' first required here
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/streambuf: In copy constructor 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(const std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/streambuf:775: error: 'std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits = std::char_traits<char>]' is private
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:68: error: within this context
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd: In copy constructor 'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(const std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)':
c:/pspsdk/lib/gcc/../../psp/include/c++/4.3.2/iosfwd:80: note: synthesized method 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(const std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >&)' first required here
main.cpp: In function 'int main(int, char**)':
main.cpp:20: note: synthesized method 'std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(const std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&)' first required here
make: *** [main.o] Error 1


Last edited by coolkehon on Tue Nov 25, 2008 3:53 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Tue Nov 25, 2008 3:53 am    Post subject: Reply with quote

didnt include fstream but included iostream that fixed it so added fstream to includeds and it worked small error i fogot to do that
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group