Author Topic: CB ignores one header file  (Read 4998 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
CB ignores one header file
« on: January 17, 2007, 01:45:50 am »
My project looks like

\cbKeyMacs
   common cpp files
   common header files
   version.h
  \App  (sub directory)
    KeyMacsApp.cbp
    app.cpp
    app.h
  \Plugin (sub directory)
    KeyMacsPlugin.cbp
    KeyMacs.cpp
    keyMacs.h

Notice that version.h is in the top directory.
It's included by  app.h and keyMacs.h

When I change version.h, CB says there is nothing to be done.

I have "Explicitly Add currently compiling files directory to compiler search dir" check.
I have "Explicitly Add project top level directory to compiler search dirs" check.

What am I overlooking?


I have
« Last Edit: January 17, 2007, 01:47:45 am by Pecan »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: CB ignores one header file
« Reply #1 on: January 17, 2007, 02:01:13 am »
Just to suggest the simple thing to verify
Is version.h under the "Headers" when you expand it in C::B?

Is the include using <version.h> or "version.h", if <version.h>
I would try #include "version.h"

Tim S
« Last Edit: January 17, 2007, 02:08:26 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB ignores one header file
« Reply #2 on: January 17, 2007, 02:58:41 am »
Just to suggest the simple thing to verify
Is version.h under the "Headers" when you expand it in C::B?

Is the include using <version.h> or "version.h", if <version.h>
I would try #include "version.h"

Tim S

version.h is included as #include "version.h"

Curiously enough, there's another header in the same place called debugging.h. It does not have the problem. I change debugging.h and the project re-compiles.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: CB ignores one header file
« Reply #3 on: January 17, 2007, 03:45:34 am »
Here's two very long long shots.
Have your verified that the file date is correct when you update it?
Also, is it correct on the files including the .h file?
And, is you system clock correct?

Tim S
« Last Edit: January 17, 2007, 03:57:04 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB ignores one header file
« Reply #4 on: January 17, 2007, 04:00:57 am »
Here's two very long long shots.
Have your verified that the file date is correct when you update it?
Also, is it correct on the files including the .h file?
And, is you system clock correct?

Tim S

No, clock looks ok, and the file is as follows. Note, it the latest date and time.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB ignores one header file
« Reply #5 on: January 17, 2007, 04:59:25 am »
Here's two very long long shots.
Have your verified that the file date is correct when you update it?
Also, is it correct on the files including the .h file?
And, is you system clock correct?

Tim S

Well, I solved the problem by adding a fake class to the header file and a fake definition of version.

I guess CB only works by checking the .obj files. But I don't understand how debugging.h works when it has nothing but #defines in it.

Another mystery.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CB ignores one header file
« Reply #6 on: January 17, 2007, 08:52:47 am »
Pecan, if you think you can create a minimal project demonstrating this, I 'd like to get my hands on it. I 've never seen dependencies misbehaving...
Be patient!
This bug will be fixed soon...

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB ignores one header file
« Reply #7 on: January 17, 2007, 05:45:21 pm »
Pecan, if you think you can create a minimal project demonstrating this, I 'd like to get my hands on it. I 've never seen dependencies misbehaving...
Pecan, if you think you can create a minimal project demonstrating this, I 'd like to get my hands on it. I 've never seen dependencies misbehaving...

Find attached testapp2.zip
Upload folder is full. Will upload to Savefile:

http://savefile.com/files/420528



If you modify version.h, no compile occurs.

I also included debugging.h . This file, when modified in my large project caused a compile. In this small project, it does not. It behaves like version.h

SVN 3482 (msw)
thanks
pecan