Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Broken file dependency rules?: (7 Items)
   
Broken file dependency rules?  
I don't know how I did it, but my QNX projects will not compile .c or .cpp files if I edit an included .h header file.  
I can create a new blank workspace and new simple QNX C project with one source file and one local include file.  After 
I do an initial build and then edit the include file, building the project (make target 'all') says there is nothing to 
build.

I have been changing a lot of preferences trying to get my non-QNX-standard legacy projects to build correctly under the
 IDE that I may have bunged something up.  How do I return the IDE to installation defaults?
Re: Broken file dependency rules?  
Hi, Robert,

Try selecting the "Dependency Checking -> User Headers Only" option in the
context menu on your project.  (if you have an older IDE release it may be
called "Check Dependencies On/Off").

AFAIK, this wouldn't have been a default setting, though.

HTH,

Christian


On 10-12-01 4:31 PM, "Robert Murrell" <community-noreply@qnx.com> wrote:

> I don't know how I did it, but my QNX projects will not compile .c or .cpp
> files if I edit an included .h header file.  I can create a new blank
> workspace and new simple QNX C project with one source file and one local
> include file.  After I do an initial build and then edit the include file,
> building the project (make target 'all') says there is nothing to build.
> 
> I have been changing a lot of preferences trying to get my non-QNX-standard
> legacy projects to build correctly under the IDE that I may have bunged
> something up.  How do I return the IDE to installation defaults?
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post76746
> 
> 

-- 
Christian W. Damus
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>; 

Re: Broken file dependency rules?  
> Hi, Robert,
> 
> Try selecting the "Dependency Checking -> User Headers Only" option in the
> context menu on your project.  (if you have an older IDE release it may be
> called "Check Dependencies On/Off").
> 
> AFAIK, this wouldn't have been a default setting, though.
> 
> HTH,
> 
> Christian

Thanks, this fixed it for the individual project.  The default seems to be "Disable Checking".  Is there a default 
setting somewhere?
Re: Broken file dependency rules?  
Hi, Robert.

I'm glad that worked.

There isn't a default setting, but you can select multiple projects and set
this option for them all at once.  Also, if you have grouped your projects
in a Container Project, you can set it once for all member projects on the
container.

Cheers,

Christian



On 10-12-01 4:49 PM, "Robert Murrell" <community-noreply@qnx.com> wrote:

>> Hi, Robert,
>> 
>> Try selecting the "Dependency Checking -> User Headers Only" option in the
>> context menu on your project.  (if you have an older IDE release it may be
>> called "Check Dependencies On/Off").
>> 
>> AFAIK, this wouldn't have been a default setting, though.
>> 
>> HTH,
>> 
>> Christian
> 
> Thanks, this fixed it for the individual project.  The default seems to be
> "Disable Checking".  Is there a default setting somewhere?
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post76752
> 

-- 
Christian W. Damus
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>; 
Re: Broken file dependency rules?  
> Hi, Robert.
> 
> I'm glad that worked.
> 
> There isn't a default setting, but you can select multiple projects and set
> this option for them all at once.  Also, if you have grouped your projects
> in a Container Project, you can set it once for all member projects on the
> container.
> 
> Cheers,
> 
> Christian

I'm sure this worked when I installed QNX two months ago.  Or maybe I just didn't notice until a few weeks ago.  Why is 
the default not to check dependencies.  Dependency checking was one of the basic features of make, and renders the IDE 
nearly useless for software development.  I can't believe there isn't a setting for this, even if I have to manually 
edit a configuration file to change it.
Re: Broken file dependency rules?  
This is getting quite frustrating.  I manually turned on dependency checking for all the projects in my workspace.  Now 
there is one project that complains that it doesn't know how to build a certain header file.  This file is on an extra 
include path.  The Project Explorer sees it, the editor can open it by it link, and when I disable dependency checking, 
the compiler can see it.  Whats more, other projects can see it using the exact same extra include path and build just 
fine. The problem project is a library where the others are application projects.  A-A-A-R-R-R-G-G-H!
Re: Broken file dependency rules?  
There is one other factor that I bet is the source of the problem.  The source file that is including the problem file 
is a linked file.  Linking a file is an internal Eclipse construct that the QNX IDE developers seem to treat with 
disdain.  The source file exists in an external directory with a bunch of other source files.  I only need to reference 
the one file in the project and linking was the only way I could figure out how to do that.  This will be the topic of 
another discussion.  I would just like to know why a linked file would effect dependency checking.