This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124123 - How to implement precompiling header in netbeans?
Summary: How to implement precompiling header in netbeans?
Status: CLOSED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-17 14:17 UTC by danielking
Modified: 2008-03-03 13:09 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description danielking 2007-12-17 14:17:23 UTC
I wonder how to implement precompiling header in netbeans.

For example, a project with libglademm:
common.h:
#include <libglademm.h>

main.cc:
#include <common.h>
int main(...)
.....

If I want to use precompiled header in this project, firstly I will
compile common.h with "g++ -c common.h `pkg-config --cflags
libglademm-2.4`", and then I can compile main.cc very fastly.

I wonder how to do this in netbeans.

And, does netbeans support creating a project with customised
makefile, or autoconf/automake project? not importing.
Comment 1 danielking 2008-03-03 01:32:45 UTC
Add these to .build-pre: in makefile

    pch.h.gch: pch.h 
    $(COMPILE.cc) $(CXXFLAGS) -g pch.h

and add these to .clean-post: in makefile

    $(RM) pch.h.gch
Comment 2 dnikitin 2008-03-03 13:09:30 UTC
closed