|
-
June 19th, 2008, 01:04 AM
#1
.d files (dependency files)
Can anyone please tell me the usage of .d files? I saw the below explanation in a blog
"The .d files are responsible for checking all file dependencies, i.e., which files need to be recompiled if one header has been changed."
The .d files given to me in the build to test have a set of .h files written in them. (eg; x.d files talks of some a.h and b.h).
Any information on .d files would be very helpful.
-
June 19th, 2008, 09:57 AM
#2
Re: .d files (dependency files)
 Originally Posted by CarolineS
Can anyone please tell me the usage of .d files? I saw the below explanation in a blog
"The .d files are responsible for checking all file dependencies, i.e., which files need to be recompiled if one header has been changed."
The .d files given to me in the build to test have a set of .h files written in them. (eg; x.d files talks of some a.h and b.h).
Any information on .d files would be very helpful.
I have never heard of .d files, but it seems like .d files would be specific to whatever your build environment is.
What are you using to build your project?
John 3:16
For God so loved the world ...
-
June 19th, 2008, 11:43 AM
#3
Re: .d files (dependency files)
Well, it is just as you said: the .d file contains all #include dependencies for your corresponding .cpp file.
So x.cpp needs to be recompiled if a.h or b.h are changed. The make command will check the .d file to decide which files to compile.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|