User forums > Using Code::Blocks

Are .depend files still used or correctly created ?

(1/2) > >>

gd_on:
.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

gd_on:
Oups !
Nobody knows the answer ?
Or may be, those who knows are already on holidays 8)... Happy (wo)mens... :lol:

gd_on

oBFusCATed:
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?

gd_on:
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), 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

oBFusCATed:

--- Quote from: 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).

--- End quote ---

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.

Navigation

[0] Message Index

[#] Next page

Go to full version