Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » What is a .D file and why is Eclipse trying to clean it.
What is a .D file and why is Eclipse trying to clean it. [message #777535] Tue, 10 January 2012 16:37 Go to next message
Michael Beatty is currently offline Michael BeattyFriend
Messages: 43
Registered: November 2011
Member
When I clean my project, I'm getting:
"/bin/rm cannot remove 'myproject.d' No such file or directory"

My clean statement from the console display shows
rm libmyproject.so myproject.d myproject.o

Where is the .d coming from and why is my project trying to clean it?

There's no significant problem here, but it is something that is annoying me at this point.
Re: What is a .D file and why is Eclipse trying to clean it. [message #777546 is a reply to message #777535] Tue, 10 January 2012 17:01 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
That is a dependancy file generated by the compiler. It guarantees that when you modify e.g. a header file all source files that include this header will be recompiled.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: What is a .D file and why is Eclipse trying to clean it. [message #777570 is a reply to message #777546] Tue, 10 January 2012 18:13 Go to previous messageGo to next message
Michael Beatty is currently offline Michael BeattyFriend
Messages: 43
Registered: November 2011
Member
Then I would have to assume at one point, this project was creating dependency files. With that being said, I have been playing around with different versions of eclipse, and this particular project has been moved a few times, so I'm sure something broke along the way... but what broke and how do I fix it?

How do I either start building the dependency file again, or, tell the compiler to stop trying to clean it?
Re: What is a .D file and why is Eclipse trying to clean it. [message #777969 is a reply to message #777570] Wed, 11 January 2012 08:23 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
The dependancy file should be recreated automatically when you build your project.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: What is a .D file and why is Eclipse trying to clean it. [message #778176 is a reply to message #777969] Wed, 11 January 2012 14:28 Go to previous messageGo to next message
Michael Beatty is currently offline Michael BeattyFriend
Messages: 43
Registered: November 2011
Member
Axel Mueller wrote on Wed, 11 January 2012 03:23
The dependancy file should be recreated automatically when you build your project.


It isn't.
Re: What is a .D file and why is Eclipse trying to clean it. [message #778314 is a reply to message #778176] Thu, 12 January 2012 10:28 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Hm, you can try to recreate the makefile. Delete it and Eclipse will create new Makefiles. AFAIK, the dependencies are handled by the compiler options -MT and -MF. See the Makefile subdir.mk in your Debug folder.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:How to do a batch build?
Next Topic:OPenGL with CDT Macintosh
Goto Forum:
  


Current Time: Tue Apr 16 04:50:11 GMT 2024

Powered by FUDForum. Page generated in 0.28248 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top