C++ header precompilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

I'm trying to use header precompilation (
http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html ) for C++
header files.

Ive read the sentence: "To create a precompiled header file, simply
compile it as you would any other file, if necessary using the -x
option to make the driver treat it as a C or C++ header file."

About a hundred times. However, I strongly begin to have the fealing
that the "c++-header" language or support for an extension like ".hh"
is making it impossible to tell the compiler that we are dealing with
a header file AND it's C++.

Could you give me a concrete working example of precompiling C++ header files?

Greetings,
  Bram

PS I would also like to start a discussion on why the c++-header
language isn't present or wether a ".hh" extension should be added.
Where would be a good place to do this?


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux