Re: std::string weird error



Ondrej Stastny wrote:
> Hello! I'm tryig to get to run a GTKmm and libglademm app, but I have a
> really weird issue with std::string. I'm under Win XP, MSVC++ 8 Beta 2.
> I have both GTK+ and GTKmm correctly installed .
> When I try to run simple program below It starts printing out weird
> strings such as some dll paths and other system related things all
> joined in one huge string and the computer is beeping on the top of it.
> I don't need to include gtkmm.h either as it's enought to link gtkmm
> related libraries to produce this error. What could be a problem?
> 
> #include <iostream>
> #include <string>
> #include <gtkmm.h>
> 
> int main(int argc, char *argv[]) {
>    std::string str("ui.glade");
>    std::cout << str << std::endl;
> }

Works for me with Visual Studio 2003. Might be a problem with Visual
Studio 2005 beta. Did you try with Visual Studio 2003 ?

Cedric




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]