Dependency failure: change .h file, .cpp is not recompiled

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
DutchUncle
In need of some credit
In need of some credit
Posts: 4
Joined: Fri Mar 30, 2007 5:50 pm

Dependency failure: change .h file, .cpp is not recompiled

Post by DutchUncle » Fri Apr 13, 2007 5:02 pm

this may read like the opposite of the thread about unnecessary dependency checking, but i did NOT set the "fast" dependency option.

This is a dependency that should really be there, by a simple chain of #includes (admittedly nested), and it's being missed. Rebuild All is my workaround.

Any suggestion of settings to check / add / update?

thanks

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Sat Apr 14, 2007 1:50 am

Is your include in the "include path" because of a project-based include or "global" include? If it is in one of those "extra include paths" that your compiler should be aware of (contrast it with a path relative to the source file itself) wxDev-C++ won't check those files (since they are viewed as global files).

Joel

DutchUncle
In need of some credit
In need of some credit
Posts: 4
Joined: Fri Mar 30, 2007 5:50 pm

Post by DutchUncle » Sun Apr 15, 2007 9:13 pm

Aha. Yes, it's in a project-based include. If I understand you correctly, it would work if I had

#include "../includes/foo.h"

but doesn't work because I just have

#include "foo.h" // include search path specified in options window

I guess I'll have to re-check the project structure.

Thanks for your help!

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Wed Apr 18, 2007 11:36 am

Yep, you got me right.

Joel

Post Reply