Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Max on February 23, 2007, 11:11:18 pm

Title: Bug in dependencies
Post by: Max on February 23, 2007, 11:11:18 pm
Hi all,

Using the nightly buind 3627 on Windows XP SP2 I am observing a lack of recompilation triggering when I change a file.

Hereafter how I observe the bug.

In the project dir I have a file GenLib.h. In the project dir I have directory called windows in which I have a .c file including the  header as

#include "GenLib.h"

The depend file says


1172266375 source:c:\c\projects\genlib\windows\tablelistview.c
   <windows.h>
   <winuser.h>
   <commctrl.h>
   <process.h>
   <stdlib.h>
   <ctype.h>
   "GenLib.h"

I have set the two flags (compiler search dirs)in the compiler option to add the currently compiling file's directory and to add the projects's top level directory.

The compilation is fine. Then I change something in GenLib.h and save it. Clicking on Build no compilation starts.

If I change the .c file including the header as

#include "..\GenLib.h"

after clicking on "Build"  the .depend file says (incorrectly)

1172267946 source:c:\c\projects\genlib\windows\tablelistview.c
   <windows.h>
   <winuser.h>
   <commctrl.h>
   <process.h>
   <stdlib.h>
   <ctype.h>
   "GenLib.h"
 and changing the header no compilation is triggered

If I delete the .depend file and after a rebuild I get


1172268021 source:c:\c\projects\genlib\windows\tablelistview.c
   <windows.h>
   <winuser.h>
   <commctrl.h>
   <process.h>
   <stdlib.h>
   <ctype.h>
   "..\GenLib.h"

and now a modification in the header will trigger a compilation.

 

Is this behavior correct?

Max
 



Title: Re: Bug in dependencies
Post by: mandrav on February 24, 2007, 09:15:01 am
Quote
I have set the two flags (compiler search dirs)in the compiler option to add the currently compiling file's directory and to add the projects's top level directory.

It seems that those two flags are not passed down to the deps calculation.
Thanks for digging into this Max, I will look into this soon.