OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000410OMNeT++IDE / C++ developmentpublic2011-09-14 11:272011-09-14 11:32
Reporterandras 
Assigned Toandras 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.2rc1 
Target VersionFixed in Version4.2 
Summary0000410: Dependencies for generated files are sometimes not included in the makefile
DescriptionWhen building from the IDE, it is possible to get a build error like "error: include file Bar_m.h not found" while compiling a Foo.cc file, where Foo.cc actually includes a Bar.h, and Bar.h in turn includes the (generated) Bar_m.h file.

The Makefile should "know" (dependencies!) that for compiling Foo.cc, Bar_m.h is required, i.e. opp_msgc Bar.msg should be run beforehand.


This error is caused by a missing Bar_m.h line in Foo.obj's dependency list in the makefile.

See attached project that triggers the bug.
TagsNo tags attached.
Attached Fileszip file icon a.zip [^] (4,216 bytes) 2011-09-14 11:29

- Relationships

-  Notes
(0000549)
andras (administrator)
2011-09-14 11:31

Problem is in DependencyCache. Looks like a file that only #includes a nonexistent header file will not be included into CDT's index.
(0000550)
andras (administrator)
2011-09-14 11:32

Looks like the indexManager.update() call in DependencyCache requires the IIndexManager.FORCE_INDEX_INCLUSION flag (in addition to IIndexManager.UPDATE_CHECK_TIMESTAMPS) to index files with unresolved #includes.

- Issue History
Date Modified Username Field Change
2011-09-14 11:27 andras New Issue
2011-09-14 11:29 andras File Added: a.zip
2011-09-14 11:31 andras Note Added: 0000549
2011-09-14 11:32 andras Note Added: 0000550
2011-09-14 11:32 andras Status new => resolved
2011-09-14 11:32 andras Fixed in Version => 4.2
2011-09-14 11:32 andras Resolution open => fixed
2011-09-14 11:32 andras Assigned To => andras


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker