Solved

What is the difference between .h and .hh files?

Posted on 2004-10-11
2
793 Views
Last Modified: 2006-11-17
Hi,
What is the difference between .h and .hh files?
I know both are extensions for header files but I have both type of files in my environement.
Is it got to do with third party library?

Thanks
0
Comment
Question by:dkamdar
2 Comments
 
LVL 17

Accepted Solution

by:
rstaveley earned 50 total points
ID: 12278583
It is just a convention used by your library vendor. You might find that they put their C++ stuff in .hh headers. You might find that they put headers which you are not supposed to include directly yourself in the .hh files.
0
 
LVL 12

Expert Comment

by:stefan73
ID: 12278677
Hi dkamdar,
The C/C++ preprocessor isn't picky. It will include anything that is in the include path. So, naming is just a convention.

Cheers!

Stefan
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question