Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

new wxWidget(wxSmith) project

<< < (5/6) > >>

Biplab:
That would be a nice change. :)

I'll update the Non-wxSmith generated sources without <wx/wx.h> header. I believe that would make the PCH file smaller and the build be faster, too.

byo:

--- Quote from: Biplab on June 23, 2007, 05:28:02 pm ---That would be a nice change. :)

I'll update the Non-wxSmith generated sources without <wx/wx.h> header. I believe that would make the PCH file smaller and the build be faster, too.

--- End quote ---

I've already updated the wxSmith-only files. So there's only this wx_pch.h left to update (it's shared so I don't know if you also wanted to update this one), I'll leave this to you since there may still be some problems with non-wxSmith projects after pch change.

And it looks like wx projects start having beter and cleaner shape and even though, the PCH compatibility is granted :) Of course they still can be better but even now I like the result :D

BYO

killerbot:
I think we have a little problem.

On linux there's no wx_pch.h, or I am not finding it.

I replace it by  :

--- Quote ---#include "wx/wxprec.h"

--- End quote ---
and then it compiles again.
I didn't change anything in svn. What do you guys think ??

Biplab:

--- Quote from: killerbot on June 24, 2007, 10:19:31 am ---I think we have a little problem.

On linux there's no wx_pch.h, or I am not finding it.

I replace it by  :

--- Quote ---#include "wx/wxprec.h"

--- End quote ---
and then it compiles again.

--- End quote ---

We need to check the wizard in Linux, too. :)

Including "wx/wxprec.h" would kill the benefits and cleanliness that you and Byo have proposed. But for a temporary fix, it can be used. :D

byo:

--- Quote from: Biplab on June 24, 2007, 10:35:34 am ---
--- Quote from: killerbot on June 24, 2007, 10:19:31 am ---I think we have a little problem.

On linux there's no wx_pch.h, or I am not finding it.

I replace it by  :

--- Quote ---#include "wx/wxprec.h"

--- End quote ---
and then it compiles again.

--- End quote ---

We need to check the wizard in Linux, too. :)

Including "wx/wxprec.h" would kill the benefits and cleanliness that you and Byo have proposed. But for a temporary fix, it can be used. :D

--- End quote ---

For unix-based wizard there's "wxWidgets Library Settings" with two options:
- Use default wxWidgets configuration
- Use Advanced Options

In the first mode all extra options (including pch) are disabled. But "Create Empty Project" and "Create and use precompiled header (PCH)" should also be enabled since it should be possible to create both empty and pch-enabled project even when default wx settings are used.

Including "wx/wxprec.h" is only a workaround and won't create real pch-s. That's because .gch file is not created (it's possible to create such file but it will require adding .gch file to system files which probably is not a best choice). So the pch option for unix is really required :)

BYO

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version