Re: headers question



Hi,

Usually the needed file is named after the Class
Gtk::Main -> gtkmm/main.h
Gtk::Window --> gtkmm/window.h

This files will include the files with the needed classes
Gtk::Dialog inherits Gtk::Window -> gtkmm/dialog.h includes gtkmm/window.h

If you keep your includes-List up-to-date, it should never result in problems, otherwise the compiler will tell you

With regards,
michi

I have been working with Gtkmm for about a month, and there are numerous things I am sure I need to know, but what I am wondering about now has to do with the headers. In most of the Gtkmm examples, the comprehensive "include <gtkmm.h> is used. I have copied this and of course it works fine. But would it speed up compilation if I could identify just the files I actually needed? And is there an efficient way to do this? And does either pattern make a difference in the speed with which the executable file is executed?

Andy Gilman



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