Works here with my latest binaries (gtkmm-devel-2.8.3-2). Make sure you have
#include <iostream> #include <glibmm.h> at the top of your file. Then build with g++ -o test_glibmm `pkg-config --cflags glibmm-2.4` test_glibmm.cc `pkg-config --libs glibmm-2.4` Also, check the release of your mingw32-gcc compiler (should be 3.4.2). Cedric On 3/30/06, Yose Widjaja <[EMAIL PROTECTED]> wrote: > Hi, > > but that can't be, it's in the documentation and that thing compiles under > linux? The thing is I am trying to get it to work at home with my windows > box. > > Cheers > > On Wed, 29 Mar 2006, Bob Caryl wrote: > > > Glib::ustring does not support the "<<" and ">>" operators. > > > > Bob > > > > Yose Widjaja wrote: > > > >> Hi, > >> > >> #include <glib.h> > >> #include <glibmm.h> > >> > >> That's all that's necessary to use ustring right? (i don't think the glibmm > >> is necessary even, after using glib.h) > >> > >> Thanks > >> > >> On Tue, 28 Mar 2006, Hargobind Khalsa wrote: > >> > >>> Are you including the necessary headers? > >>> > >>> good luck! > >>> > >>> On 3/28/06, Yose Widjaja <[EMAIL PROTECTED]> wrote: > >>> > >>>> > >>>> Hi, > >>>> > >>>> I have dev-c++ and mingw32 gcc on my windows box. Just yesterday night, I > >>>> installed gtkmm as according to this instruction: > >>>> > >>>> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ape.html > >>>> > >>>> However, when I tried to compile a simple c++ file using ustring, it spat > >>>> out this kind of messages: > >>>> > >>>> C:\DOCUME~1\dante\LOCALS~1\Temp/cc4eaaaa.o(.text+0x73):main.c: undefined > >>>> reference to `Glib::ustring::ustring()' > >>>> C:\DOCUME~1\dante\LOCALS~1\Temp/cc4eaaaa.o(.text+0x88):main.c: undefined > >>>> reference to `Glib::ustring::ustring()' > >>>> C:\DOCUME~1\dante\LOCALS~1\Temp/cc4eaaaa.o(.text+0x9d):main.c: undefined > >>>> reference to `Glib::ustring::ustring()' > >>>> > >>>> The linker and include flags, I obtained from pkg-config --cflags --libs > >>>> gtkmm-2.4. > >>>> > >>>> the c file is just something like this: > >>>> > >>>> using Glib::ustring; > >>>> using std::string; > >>>> using std::cin; > >>>> using std::cout; > >>>> > >>>> //////////////////////////////////////////////////////////////////////////////////////// > >>>> int main(){ > >>>> > >>>> ustring a, b, c, d, e, f; > >>>> > >>>> cin >> a; > >>>> cin >> b; > >>>> cin >> c; > >>>> cin >> d; > >>>> cin >> e; > >>>> cin >> f; > >>>> > >>>> cout << a << b << c << d << e << f; > >>>> return 0; > >>>> } > >>>> > >>>> Sorry for the long question. Does anybody have any idea why? > >>>> > >>>> Cheers > >>>> > >>>> ----------------------------------- > >>>> Yose Widjaja > >>>> 3rd Year Software Engineering > >>>> > >>>> page : http://www.cse.unsw.edu.au/~wyos/ > >>>> mail : [EMAIL PROTECTED] > >>>> [EMAIL PROTECTED] > >>>> msn : [EMAIL PROTECTED] > >>>> icq : 75090197 > >>>> > >>>> research interests : > >>>> exotic software engineering methods > >>>> sentient operating systems > >>>> 7th level languages > >>>> man-machine integration > >>>> ancient cryptozoology > >>>> , ` , ` , ` , ` , ` , ` , ` , ` , ` > >>>> ----------------------------------- > >>>> > >>>> _______________________________________________ > >>>> gtkmm-list mailing list > >>>> [email protected] > >>>> http://mail.gnome.org/mailman/listinfo/gtkmm-list > >>>> > >>> > >> > >> ----------------------------------- > >> Yose Widjaja > >> 3rd Year Software Engineering > >> > >> page : http://www.cse.unsw.edu.au/~wyos/ > >> mail : [EMAIL PROTECTED] > >> [EMAIL PROTECTED] > >> msn : [EMAIL PROTECTED] > >> icq : 75090197 > >> > >> research interests : > >> exotic software engineering methods > >> sentient operating systems > >> 7th level languages > >> man-machine integration > >> ancient cryptozoology > >> , ` , ` , ` , ` , ` , ` , ` , ` , ` > >> ----------------------------------- > >> > >> _______________________________________________ > >> gtkmm-list mailing list > >> [email protected] > >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > >> > > > > > > ----------------------------------- > Yose Widjaja > 3rd Year Software Engineering > > page : http://www.cse.unsw.edu.au/~wyos/ > mail : [EMAIL PROTECTED] > [EMAIL PROTECTED] > msn : [EMAIL PROTECTED] > icq : 75090197 > > research interests : > exotic software engineering methods > sentient operating systems > 7th level languages > man-machine integration > ancient cryptozoology > , ` , ` , ` , ` , ` , ` , ` , ` , ` > ----------------------------------- > > _______________________________________________ > gtkmm-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkmm-list > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
