Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: gd_on on June 30, 2010, 12:10:13 pm

Title: Are .depend files still used or correctly created ?
Post by: gd_on on June 30, 2010, 12:10:13 pm
.depend files contains dependencies if I understand well.
There is effectively something in them when I create a single project : lines with a time stamp (I think), the name of each file followed by some lines with the included header files.
But, when I have a workspace, so many projects included, for example C::B itself, only the last explored .depend file has these informations. All others contains only one line with a title : #desplib dependency file v1.0 , but nothing else. Is it normal ?

If in the workspace I build only one of the projects, the .depend file has informations lines.

I work mainly on Windows XP (SP3), last nightly (SVN 6378), but I think this is not new.
This problem does not happen on Linux I think, all .depend files have many lines.

gd_on
Title: Re: Are .depend files still used or correctly created ?
Post by: gd_on on July 06, 2010, 06:19:33 pm
Oups !
Nobody knows the answer ?
Or may be, those who knows are already on holidays 8)... Happy (wo)mens... :lol:

gd_on
Title: Re: Are .depend files still used or correctly created ?
Post by: oBFusCATed on July 06, 2010, 11:02:10 pm
Probably you have to debug the code yourself or at least supply a testing workspace.

Also, does this "feature" cause the build to fail or just bothers you?
Title: Re: Are .depend files still used or correctly created ?
Post by: gd_on on July 07, 2010, 10:02:54 am
C::B itself is a good testing workspace, though probably too complicated. It shows the problem on Windows (On Linux, it seems to work as I think it should).
Re-build totally the workspace and you'll see that only the last created .depend file has something else than the title line.
If you rebuild only one of the sub-project, the corresponding .depend file seems to be correct.
On a C++ workspace, I must admit, as you said, that it's only bother me, because it seems to work without these .depend files. (if I say "seems" it's because I'm not totally sure of this in all cases: sometimes I need to build 2 or 3 consecutively times the C::B build workspace because it claims that some header files are missing though they are here. It looks this is essentially with .gch files. Is it the same problem or another, I don't know).
On a fortran project, it's not the same. As you suggested me in an other post (here (http://forums.codeblocks.org/index.php/topic,12795.msg86541.html#msg86541)), I first tried to understand how desplib works to be able to eventually modify or adapt it to fortran project. But, until now, I don't really understand how it works, and more, if it's not really used (or useful), it's not here that I have to search how to get dependencies work in fortran included files. That's the main reason of this help request.

gd_on
Title: Re: Are .depend files still used or correctly created ?
Post by: oBFusCATed on July 07, 2010, 12:39:41 pm
C::B itself is a good testing workspace, though probably too complicated. It shows the problem on Windows (On Linux, it seems to work as I think it should).

C::B is a single project + multiple targets. What are you talking about?
The workspace for the contrib plugins or the main/core cbp file?

Hm, Is seems that my main project has the same behavior. Only .depend file for the active project is full with data.
I have no problems with the build process, but I do not use precompiled headers.
Title: Re: Are .depend files still used or correctly created ?
Post by: gd_on on July 08, 2010, 11:49:15 am
Sorry,  :(
I forgot to mention that I made a C::B workspace by adding a line with CodeBlocks.cbp at the beginning of ContribPlugins.workspace to obtain a new CbProject.workspace (and the equivalent for unix versions). Nevertheless, standard ContribPlugins.workspace alone has this "special" behavior on Windows with these .depend files.
And as you said, the build process is correct, so ... are they really used or useful ? Strange  :o

gd_on