[glade--]FW: Code generation problem



>  -----Original Message-----
> From: 	Van Leeuwen, Anthony W  
> Sent:	Thursday, February 07, 2002 3:35 PM
> To:	'glademm-list gnome org'
> Subject:	Code generation problem
> 
> Hi,
> 
> In a dialog box, I have three text entry fields.  By default these fields
> are "private".  When I changed them to "public" and then generated code
> the newly built project would not compile.  The error was in the
> glademm_support.hh file where it listed the following includes:
> 
> #include <std::string>;
> #include <std::map>;
> 
> I changed "std::" to "g++-3/" in both lines and the project compiled.
> 
> Also, does any one know of any sample projects built using glademm to
> review and look over in order to get a better understanding of how to use
> C++ in the glademm/gtkmm environment.
> 
> Thanks
> 
> Anthony van Leeuwen
> 
> Follow-up:
> 
> Attached below is the text from the make.  Since I compiled the project
> successfully before, not sure what is wrong.  It appears the above
> definitions did compile ok before??
> 
> $ make
> make  all-recursive
> make[1]: Entering directory `/home/anthony/Projects/project8'
> Making all in macros
> make[2]: Entering directory `/home/anthony/Projects/project8/macros'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/anthony/Projects/project8/macros'
> Making all in src
> make[2]: Entering directory `/home/anthony/Projects/project8/src'
> c++ -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -I/usr/lib/gnomemm/include
> -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2
> -I/usr/X11R6/include -I/usr/lib/sigc++/include -I/usr/lib/gtkmm/include -c
> project8.cc
> In file included from add_dialog.hh:15,
>                  from project8.cc:14:
> glademm_support.hh:10:23: std::string: No such file or directory
> glademm_support.hh:11:20: std::map: No such file or directory
> make[2]: *** [project8.o] Error 1
> make[2]: Leaving directory `/home/anthony/Projects/project8/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/anthony/Projects/project8'
> make: *** [all-recursive-am] Error 2
> 



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