Anonymous | Login | 2022-06-26 02:09 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000410 | OMNeT++ | IDE / C++ development | public | 2011-09-14 11:27 | 2011-09-14 11:32 | ||||
Reporter | andras | ||||||||
Assigned To | andras | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 4.2rc1 | ||||||||
Target Version | Fixed in Version | 4.2 | |||||||
Summary | 0000410: Dependencies for generated files are sometimes not included in the makefile | ||||||||
Description | When 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
![]() |
|
(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. |
![]() |
|||
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 - 2022 MantisBT Team |