slow compilation in windows

View: New views
2 Messages — Rating Filter:   Alert me  

slow compilation in windows

by Renato Merli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 ?
  Used no extra options for gcc (just the ones from pkg-config) and
the default config file that comes with gtkmm for visual c++.


[]´s

Renato Merli
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: slow compilation in windows

by Armin Burgmeier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list