How to use precompiled header

Asked by minggang on 2018-05-15

Hello,

I'm using below gcc tool chain.
gcc version 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496] (GNU Tools for ARM Embedded Processors)

Does it support precompiled header?

I can build header file to .gch file, but seems the compiler has never been able to use .gch file while compiling .c source file.

Once .h file is deleted to try to let compiler use .gch, the compiler reports "xxx.h could not be found" error when compiles .c source code.

Thanks.

Question information

Language:
English Edit question
Status:
Open
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
2018-05-15
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask minggang for more information if necessary.

To post a message you must log in.