Dear Code::blocks experts,
I am running the Nightly build 3935 and I have come accross the following problem/bug :
I have a project p1.cbp in which gcc.exe has the additional compile option --include="p1.h", p1.cbp produces a static library libp1.a
p1.h is a file that includes p2.h by a preprocessor #include directive
now I have a second project p2.cbp that is dependent on p1.cbp an in which gcc.exe has the additional compile option --include="p2.h". p2.cbp produces a console application.
p2.h contains some #define compile flags that affect the executable to be produced.
Now what happen is the following :
If I Clean the workspace by the Build/Clean menu, then any change to p2.h is taken into account. But if I recompile in command line with codeblocks.exe --rebuild then a change to p2.h is not taken into account.
Furthermore, in order to try and fix this situation I have done the following :
I add p2.h to the set of the elements of p2.cbp (but note that p2.h is not included by any .cpp files of p2.cbp).
Similarly I added p1.h to the set of elements of p1.cbp (but neither p1.h is included by any .cpp files of p1.cbp).
These counter-measures did not change the faulty behaviour of codeblocks command line --rebuild option.
Very best regards,
Vincent.