OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0001002OMNeT++IDE / C++ developmentpublic2017-03-11 17:402017-03-11 17:40
jerzyd 
 
normalmajoralways
newopen 
Windows10
 
 
0001002: Include directories are not taken from referenced project
The problem concerns OMNeT++ 5.1rc2.

When one project refers to another, the include directories from the another project are not added to the Makefile of the first project.

An example of header of src/Makefile generated by OMNeT++ 5.1rc2:
# This file was generated with the command:
# opp_makemake -f --deep -KINET_PROJ=../../inet -L$$\(INET_PROJ\)/out/$$\(CONFIGNAME\)/src -lINET

An example of header of src/Makefile generated by OMNeT++ 5.0 (correctly):
# This file was generated with the command:
# opp_makemake -f --deep -I../../inet/src -L../../inet/out/$$\(CONFIGNAME\)/src -lINET -KINET_PROJ=../../inet

In OMNeT++ 5.1rc2 there is no "-I../../inet/src" part.
1) Import and build INET 3.5.0.
2) Create a new standalone OMNeT++ project (Sink-Source).
3) In the Sink-Source "Properties" | "Project references" select "inet".
4) In the Sink.h add a line:

#include "inet/common/INETDefs.h"

5) Build Sink-Source project. There will be a compiler error:

Sink.h:20:34: fatal error: inet/common/INETDefs.h: No such file or directory
No tags attached.
Issue History
2017-03-11 17:40jerzydNew Issue

There are no notes attached to this issue.