wxWidgets and string & iostream

Jeffrey Holle jeffreyholle at bellsouth.net
Tue Sep 5 09:31:17 PDT 2006


One thing that I seem which may be a mistake is that you express the std 
namespace in referencing cout, but not endl.  If its necessary to do 
this for cout, that is you haven't opened up the std namespace, its also 
necessary for endl.  You may be employing another endl that causes your 
problem.

Fibre Optic wrote:
> 
> Hello,
> 
> I have just written the following small code which has the following 
> declaration:
> 
> wxString xxxx = "TEST";
> 
> and i am going to print it out on the following way:
> 
> std::cout << "xxxx= " << xxxx << endl;
> 
> There is not problem with compilation or linking but during execution i 
> se segmentation fault + stac trace... Is it possible to mix wxWidgets 
> classes with i.e. strings/iostream functionality?
> 
> Regards,
> Fibre Optic





More information about the wx-users mailing list