Re: slow compilation in windows



Renato Merli wrote:
Hello friends,

 Here, compilation of gtkmm projects is taking too much time to
complete if on microsoft windows. Even a "hello world" take minutes to
compile, its ridiculous.. The same happen with gcc and visual c++.
Something must be wrong.... or not ?

For gcc, if you use make you can make use of more than one core of your processor via the -j option in case you have a multi-core CPU. Unfortunately MSVC (at least up to 9.0, I don't know about 10.0) does not support parallel building a single project.

You can speed up the compilation process a bit by making sure you don't include unnecessary header files. Especially, avoid including gtkmm.h. Instead, include the individual header files for the classes you use, such as gtkmm/window.h.

  Used no extra options for gcc (just the ones from pkg-config) and
the default config file that comes with gtkmm for visual c++.

Armin


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