wxWidgets and string & iostream

Michiel.Salters at tomtom.com Michiel.Salters at tomtom.com
Tue Sep 5 05:48:55 PDT 2006


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?

Yes, but it's easier to do so with wxUSE_STL set. wxString should be a
thin
wrapper around std::string.

Also, please provide the smallest compilable example that has the
problem.
In this case, that should be <10 lines.

Regards,
Michiel Salters







More information about the wx-users mailing list