CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    8

    Question .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.

  2. #2
    Join Date
    May 2003
    Location
    San Antonio TX
    Posts
    380

    Re: .d files (dependency files)

    Quote 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 ...

  3. #3
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,158

    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
  •  





Click Here to Expand Forum to Full Width

Featured