Specify precompiled headers folder

General questions regarding the usage of CodeLite
Alexis
CodeLite Curious
Posts: 3
Joined: Mon Apr 30, 2012 6:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Specify precompiled headers folder

Post by Alexis »

Hello all,

I recently (re)discovered CodeLite and found it far better than Code::Blocks.
C::B however permits to specify what to do with the .pch file (in Project settings):
  • Generate PCH in a directory alonside ariginal header
    Generate PCH in the object output dir
    Generate PCH alongside original header (default)
Is there something similar in CodeLite? I couldn't find. I'd like to put my .pch in object dir (cleaner!)

On a side note, here is what I'd like to find in CodeLite to drop definitely C::B:
  • C::B project import
    wxSmith integration (yes, I know: wxFormBuilder. But it's an external app)
    valgrind integration
    split views
Thanks.

Alexis
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Specify precompiled headers folder

Post by eranif »

Alexis wrote:valgrind integration
I think someone is already working on this one (michalb)
Alexis wrote:split views
If you are refering to the ability to split notebooks (wxAuiNotebook) AND you are under linux,
then you will need to build codelite from sources:

Open the file cl_defs.h, at line 29, replace:

Code: Select all

#    define CL_USE_NATIVEBOOK 1
with:

Code: Select all

#    define CL_USE_NATIVEBOOK 0
Otherwise, please explain what do you mean.
Alexis wrote:Generate PCH in a directory alonside ariginal header
Generate PCH in the object output dir
Generate PCH alongside original header (default)
atm, codelite generates the PCH file alongside the original header file.
Alexis wrote:wxSmith integration
I am pretty sure that its impossible. wxSmith is a C::B plugin

Eran
Make sure you have read the HOW TO POST thread
Alexis
CodeLite Curious
Posts: 3
Joined: Mon Apr 30, 2012 6:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Specify precompiled headers folder

Post by Alexis »

eranif wrote:valgrind integration
I think someone is already working on this one (michalb)
Great! :)
split views
If you are refering to the ability to split notebooks (wxAuiNotebook) AND you are under linux,
then you will need to build codelite from sources:
Otherwise, please explain what do you mean.
I was thinking about the ability to edit 2 (or more) files side-by-side. Very useful.
I am under Linux, but I don't really want to tweak my CL.
IMHO, any modern IDE should feature this functionality (Eclipse, C::B, VC++ all do).
atm, codelite generates the PCH file alongside the original header file.
okay. Can the option "use separate compilation flags for the PCH file" help me, or is it aimed at something else?
wxSmith integration
I am pretty sure that its impossible. wxSmith is a C::B plugin
I am almost sure it is possible!
wxSmith is written in C++ wxWidgets. CodeLite also is.
C::B plugin and CL plugin interfaces are different, but the core code would remain the same between both IDE.
So, integrating wxSmith inside CL is possible, by adapting the plugin interface.
But I agree this would require a quite huge amount of work, and this isn't - I guess - the priority for CL.

Anyway, thanks a lot for your answers, eranif.

Cheers.
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Specify precompiled headers folder

Post by Jarod42 »

Alexis wrote: I was thinking about the ability to edit 2 (or more) files side-by-side. Very useful.
That is possible,
when you have several files opened, drag the "tab file" on a side of the editor
and you will see the 2 (or more) files side by side.
I didn't see it in any menu though.
Alexis
CodeLite Curious
Posts: 3
Joined: Mon Apr 30, 2012 6:52 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Specify precompiled headers folder

Post by Alexis »

Jarod42 wrote:
Alexis wrote: I was thinking about the ability to edit 2 (or more) files side-by-side. Very useful.
That is possible,
when you have several files opened, drag the "tab file" on a side of the editor
and you will see the 2 (or more) files side by side.
I didn't see it in any menu though.
No, I can't do it on Linux.
You probably are using Windows?
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Specify precompiled headers folder

Post by Jarod42 »

Yes, I am on windows.

Are you able to move Pane ?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Specify precompiled headers folder

Post by eranif »

To clarify: wxAuiNotebook is enabled by default on Windows / Mac, while wxGTK uses the native wxNotbook (wxAuiNotebook is the control that allows you to split the notebook to multiple notebooks)

To enable wxAuiNotebook on wxGTK, please use the instructions I provided in my first reply

Eran
Make sure you have read the HOW TO POST thread
Post Reply