[Ns-bugs] [Bug 201] New: header files in NS-3 conflicting with those in external library
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Wed Jun 4 03:27:32 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=201
Summary: header files in NS-3 conflicting with those in external
library
Product: ns-3
Version: pre-release
Platform: All
OS/Version: All
Status: NEW
Keywords: api
Severity: major
Priority: P3
Component: node module
AssignedTo: ns-bugs at isi.edu
ReportedBy: jahanzeb.farooq at sophia.inria.fr
CC: mathieu.lacage at sophia.inria.fr
I am working on WiMAX module for NS-3. I am using an external library IT++ for
OFDM PHY layer operations. I identified the problem when I tried to compile
after including the library. Both NS-3 and IT++ library have same named header
files channel.h and config.h. Therefore the pre-processor macros (#ifndef,
#define) in channel.h and config.h of NS-3 prevent the same named files from
IT++ library from being included for compilation.
As a temporary solution I changed the pre-processor macro definitions in NS-3
files by adding NS3_ in beginning, i.e., I changed
#ifndef CHANNEL_H
#define CHANNEL_H
to
#ifndef NS3_CHANNEL_H
#define NS3_CHANNEL_H
and similarly in config.h file.
However there is need to solve this problem permanently since it is not very
unlikely that NS-3 developers use some external libraries which have header
files conflicting with those of NS-3.
Thanks.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list