Project

General

Profile

Actions

Bug #3127

closed

Includes heavily rely on include paths

Added by Alex Afanasyev over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Core
Target version:
Start date:
08/21/2015
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

While importing NFD and ndn-cxx into ndnSIM, I encountered a bugging issue that include directives in NFD codebase rely heavily on include paths. The issue is better with ndn-cxx, where we made sure all includes in header files are relatively and don't require proper -I flags.

I'm proposing to do the same with NFD: make all include statement (at least in header files) relative. If we do it everywhere, we can significantly reduce "includes" statements.


While this is not an issue for NFD itself, there is one problem in ndnSIM. Specifically with common.hpp include: the same name used in NFD and ndn-cxx. When -I flags are properly configured, everything is fine: ndn-cxx finds its own common.hpp and NFD finds its own. However, there could be cases when it is hard or impossible to configure proper -I.

Actions

Also available in: Atom PDF