OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000686OMNeT++simulation kernelpublic2013-11-18 09:542013-12-18 11:52
rhornig 
rhornig 
highminoralways
resolvedfixed 
4.3 
4.4 
0000686: Omnet does not compile with -DUSE_NAMESPACE
As the title suggests, namespace support is broken currently (and undocumented). If we choose to support it officially, we have to document it and add a test to the test suite.
No tags attached.
Issue History
2013-11-18 09:54rhornigNew Issue
2013-12-12 11:58rhornigPrioritynormal => high
2013-12-12 15:16rhornigAssigned To => rhornig
2013-12-12 15:16rhornigStatusnew => in work
2013-12-18 11:52rhornigNote Added: 0000864
2013-12-18 11:52rhornigStatusin work => resolved
2013-12-18 11:52rhornigFixed in Version => 4.4
2013-12-18 11:52rhornigResolutionopen => fixed

Notes
(0000864)
rhornig   
2013-12-18 11:52   
It is now possible to put the OMNeT++ APIs into the 'omnetpp::' namespace by adding the -DUSE_NAMESPACE macro to the CXXFLAGS variable in the Makefile.inc file. Additionaly, specifying the -DAUTOIMPORT_NAMESPACE will automatically import the OMNeT++ APIs so you don't have to specify the 'omnetpp::' namespace prefix in your model code. (i.e. your models will compile without any changes to the source.)